CALL: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{Command|syntax=[[Image:call.png|right|CALL]]CALL <macro name>, [<arg 1>, <arg 2>, <arg 3> ( max 10 arguments )] | {{Command|syntax=[[Image:call.png|right|CALL]]CALL <macro name>, [<arg 1>, <arg 2>, <arg 3> ( max 10 arguments )] | ||
|description=: | |description=:Call another macro file from within a macro. | ||
|param1=<macro name>|param1_desc={{macro name}} | |param1=<macro name>|param1_desc={{macro name}} |
Revision as of 00:06, 15 January 2011
Command
- Call another macro file from within a macro.
Parameters
- <macro name>
- Name of the macro file, must be in double quotes.
- [<arg 1>]
- A value to be passed to another macro, or a variable to receive a value passed back from the macro that is called.
- [<arg 2>]
- A value to be passed to another macro, or a variable to receive a value passed back from the macro that is called.
- [<arg 3>]
- A value to be passed to another macro, or a variable to receive a value passed back from the macro that is called.
- You can use between zero and 10 arguments.
Example
- CALL "line.mac" r1, q7, tt
- For an example macro see Modify_Op_Path Get_Op_Tool_Path Global_Local