Cannot undef a constant defined in an included file

+1 vote
asked Aug 22, 2017 in Bug by anonymous

I have a file, say myInclude.puml, which defines a constant, say !define FORMAT_LONG  and also a macro which, depending on the constant, produces different outputs. If I include myInclude.puml in another file, !undef the constant there and call the macro, I always get the output as if the constant was still defined.

The macro works because if I put !undef FORMAT_LONG anywhere in myInclude.puml (after !define FORMAT_LONG of course), then the proper output is returned.

It seems as if undefining a constant only works in the file where it was defined and not across included files.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...