Archive: Unused constants


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 :)


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,
http://nsis.sourceforge.net/Macro_vs_Function


Thanks a lot, great guide :)