This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
crpl:docs:call [2013/01/14 13:40] – created virgilw | crpl:docs:call [2022/06/25 13:15] – Reformat Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | |
+ | <- [[crpl: | ||
+ | |||
+ | ===== @FUNC_NAME | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | @FUNCTIONNAME | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | Invokes a function named **FUNCTIONNAME**. Execution passes to said function and returns to the statement | ||
+ | after the call when the function is complete. Arguments can be passed to and received from functions via the stack. | ||
+ | === Examples === | ||
+ | |||
+ | <code 4RPL> | ||
+ | # invoke the function defined as an example at :FUNC_NAME | ||
+ | # with the value " | ||
+ | # a rapid (speed 100) move. | ||
+ | 35 @chance if | ||
+ | 100 @relocate #Move quickly | ||
+ | endif | ||
+ | </ |