I ran across the following macro in a code segment that I'm using. The code segment works but i have no idea why and that's what's bothering me...I can't learn unless I understand why something does work as well as doesn't....
This has left me confused. I assume that "@1" and "@2" are either calls to macro @1 and @2, or the definition of params to be used with the "mod" Macro ? I can find no reference or declaration of "@1" or @2 as a macro anyplace in the file I'm using so I leaning toward the later but I don't see anything in the SDK or the wiki here about this kind of thing when using macros( I might not be searching the wiki right). If I can get a brief explanation of the above and a link to any detailed info on using macros that would be great.
thanks
Joel
Code:
<Macro Name="mod">@1 @2 @1 @2 / flr * -</Macro>
This has left me confused. I assume that "@1" and "@2" are either calls to macro @1 and @2, or the definition of params to be used with the "mod" Macro ? I can find no reference or declaration of "@1" or @2 as a macro anyplace in the file I'm using so I leaning toward the later but I don't see anything in the SDK or the wiki here about this kind of thing when using macros( I might not be searching the wiki right). If I can get a brief explanation of the above and a link to any detailed info on using macros that would be great.
thanks
Joel
Last edited:




