Archive: diff. macro <-> function


diff. macro <-> function
Hi !

I'm a complete noob to NSIS, but I think it's great :)

I've a question, regarding macros. The manual does'nt seem to answer it. What's the difference between macros and functions ? !Macro seems to to be a compiler directive.

Greetings
Nils


Macro's are processed on compile-time. A macro inserts code depending on the parameters (defines).

Function can be called on run-time.


ic, quite the same as c/c++ macros, which are expanded at compile-time by the preprocessor ?


Yep, that's right :)


thx for your help :up: :)