Skip to content

0.2, minor but important improvement

Latest

Choose a tag to compare

@christothic christothic released this 31 Dec 15:58

define directives inside if directives

Added support for define directives to be commented out when inside other directives like if or else ones.

This will make the following code:

##if defined NOT_DEFINED_THING
##define SOMETHING_THAT_SHOULD_NOT_BE_DEFINED
##endif

into:

##if defined NOT_DEFINED_THING
#--##define SOMETHING_THAT_SHOULD_NOT_BE_DEFINED
##endif

And SOMETHING_THAT_SHOULD_NOT_BE_DEFINED wont be added to the define list used to check with ##ifs

Hope you like it. Bye.