next up previous contents index
Next: Lowercase Up: Functions and Procedures Previous: Lo

LongJmp

   

Declaration:

Procedure LongJmp (Var env : Jmp_Buf; Value : longint) ;

Description:

LongJmp jumps to the adress in the env jmp_buf, and resores the registers that were stored in it at the corresponding SetJmp call.

In effect, program flow will continue at the SetJmp call, which will return value instead of 0. If you pas a value equal to zero, it will be converted to 1 before passing it on. The call will not return, so it must be used with extreme care.

This can be used for error recovery, for instance when a segmentation fault occurred.

Errors:

None.

See also:

SetJmp

For an example, see SetJmp



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998