Skip to content
⌘ NSIS Forum Archive

diff. macro <-> function

5 posts

Nils2000#

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
Joost Verburg#
Macro's are processed on compile-time. A macro inserts code depending on the parameters (defines).

Function can be called on run-time.
Nils2000#
ic, quite the same as c/c++ macros, which are expanded at compile-time by the preprocessor ?