Skip to content
⌘ NSIS Forum Archive

Function

6 posts

ACEMCP#

Function

There are any way to add a variable to Function in C++ style?

registerfile(variable1 variable2)

?

Or I have to use macros?


Best regards,
ACEMCP
Joost Verburg#
You can use the stack.

Example:

Push "bla1"
Push "bla2"
Call bla

Function bla

Pop $R1
Pop $R0

FunctionEnd
ACEMCP#
If I use the macro many times, Does it increase the filesize significally?

Many times means 200...

ACEMCP
Joost Verburg#
Adding the same code 200 times is not such a good idea.

I recommand using using (user) variables or the stack. You can even create a macro that adds the items to the stack and calls the function.