Skip to content
⌘ NSIS Forum Archive

Unused constants

3 posts

Backland#

Unused constants

Hello,

I !define around 20 constants with details about the installer which are needed at compile time (like paths to files, etc). These constants are not used in the installer section of functions/macros, etc

Should I !undef them manually at the end of the script or are they discarded automatically?

Thanks 🙂
Red Wine#
Definitions dealing with the compiler, have no affect with the installer.
You should undefine them only if you need to redefine them later in your script with new values.
A good example explaining among others the possible need of undefine and redefine a definition is here,