std::longjmp

From Cppreference

Jump to: navigation, search
Defined in header <csetjmp>

void longjmp( jmp_buf env, int status );

Loads the execution context env saved by a previous call to setjmp(). This function does not ever return. Control is transferred to the particular call site of setjmp() that set up env. That setjmp() function then returns the value, passed as the status.

No cleanup such as calling destructors is done during transfer of control.

Contents

[edit] Parameters

env - variable referring to the execution state of the program saved by setjmp()

{{param list item | status | the value to return from setjmp(). If it is equal to 0, 1 is used instead.

[edit] Return value

(none)

[edit] Example

[edit] See also

setjmp
saves the context
(function)