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
Archive: Function
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
You can use the stack.
Example:
Push "bla1"
Push "bla2"
Call bla
Function bla
Pop $R1
Pop $R0
FunctionEnd
Try !macro. Read the docs about it :)
If I use the macro many times, Does it increase the filesize significally?
Many times means 200...
ACEMCP
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.
Yes! This could be a right sollution!