User Tools

Site Tools


crpl:docs:call

Table of Contents

<- CRPL reference <- Vars and Functions

@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

3 4 @MyMathFunction Trace  # will print 9 to the stack (3 * 4 - 3)
 
:MyMathFunction
   ->b ->a         # read 2 items from the stack
   <-a <-b * <-a - # multiply both and subtract the first
crpl/docs/call.txt · Last modified: 2022/06/25 13:17 by Karsten75