Difference between revisions of "cpp/utility/program/longjmp"
From cppreference.com
m (Text replace - "{{params}}" to "===Parameters===") |
m (Text replace - "{{returns}}" to "===Return value===") |
||
Line 17: | Line 17: | ||
<!-- ======== --> | <!-- ======== --> | ||
− | + | ===Return value=== | |
{{return none}} | {{return none}} | ||
Revision as of 17:50, 2 August 2011
Template:cpp/utility/program/sidebar
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.
Parameters
env | - | variable referring to the execution state of the program saved by setjmp()
{{param list item | status | the value to return from |
Return value
This section is incomplete Reason: no example |
saves the context (function macro) |