[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Jump to address.
Source position: setjumph.inc line 24
procedure longjmp( |
var S: jmp_buf; |
value: LongInt |
); |
LongJmpjumps to the adress in the envjmp_buf, and restores the registers that were stored in it at the corresponding SetJmpcall. In effect, program flow will continue at the SetJmpcall, which will return valueinstead of 0. If a valueequal to zero is passed, 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.
For an example, see SetJmp
None.
|
Save current execution point. |