aardappel / treesheets

TreeSheets : Free Form Data Organizer (see strlen.com/treesheets)
zlib License
2.64k stars 194 forks source link

Add optional header guards #745

Closed tobiolo closed 3 weeks ago

tobiolo commented 4 weeks ago

This not really necessary right now, but it is a good future-proof measure anyway.

aardappel commented 3 weeks ago

Not sure why that would be a good idea, as that would indicate they are meant to be possibly included multiple times, which they are not.

TreeSheets uses this system: https://strlen.com/java-style-classes-in-c/

You could try to undo that system, but that likely would require a lot of changes. As long as headers are included inside a struct, you probably would want to do the opposite: error on them being included more than once.

tobiolo commented 3 weeks ago

Hi Wouter Thanks for your reply! I could get a general grasp of your article and so I would also prefer to leave this as-is. Best regards, Tobias

tobiolo commented 3 weeks ago

Thanks for pointing to the article!