RETURN

From ICE Enterprises
Jump to navigation Jump to search

Returns from a macro, procedure, subroutine, or control section

Returns the macro pointer and thread of execution to the caller at
the point where the currently executing code was called.

Examples:

  startmacro

    say "Going to procedure ABC."
    call abc
    say "Back where we started from."

    stop

    procedure abc
    say "Within procedure ABC."
    return

  endmacro

When this macro runs, it will produce the output:

Going to procedure ABC.
Within procedure ABC.
Back where we started from.

See Also:  CALL, PROCEDURE, GCONTROL