Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual522629-013
14-61
SETJMP_ Procedure
SETJMP_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
The SETJMP_ procedure saves process context in a jump buffer. This context is used
when a nonlocal goto is performed by a corresponding call to the LONGJMP_
procedure.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
retval returned value
INT(32)
indicates the outcome of the call:
0D indicates that the SETJMP_ procedure was called directly.
<>0D indicates that the SETJMP_ procedure is returning as a result of a call to
the LONGJMP_ procedure. The returned value is specified by
LONGJMP_.
#include <setjmp.h>
jmp_buf env;
int setjmp ( jmp_buf env );
?SOURCE $SYSTEM.SYSTEM.HSETJMP
retval := SETJMP_ ( env ); ! o