Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Define a macro anywhere in your file
- Def MyMacro1(Argument1, Argument2)
- # everything before "End" is the body of the macro
- DoSomething 0123, Argument1, blabla Argument2
- DoSomething2 Argument2
- End # don't forget this!!
- # use your macro wherever you want, it will paste the arguments into the macro body, and paste the macro body at the place of the usage
- "MY_DEFINITION" MyMacro1("zombies", "swords")
- # the result will be:
- "MY_DEFINITION"
- DoSomething 0123, "zombies", blabla "swords"
- DoSomething2 "swords"
Advertisement
Add Comment
Please, Sign In to add comment