![]() |
Retro Rocket OS
|
Ends execution of the current procedure (defined with DEF PROCname) and returns to the caller.
Execution resumes at the statement after the PROCname(...) call.
Loops (FOR, WHILE, REPEAT) are scoped to the current procedure.
Any active loops created inside a PROC are discarded when ENDPROC is reached unless they have already been exited normally.
If execution continues and a loop-closing statement is encountered with no matching loop, a runtime error is raised (e.g. NEXT without FOR).