Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/utility/program/longjmp"

From cppreference.com
< cpp‎ | utility‎ | program
m (Text replace - "{{params}}" to "===Parameters===")
m (Text replace - "{{returns}}" to "===Return value===")
Line 17: Line 17:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{returns}}
+
===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 setjmp(). If it is equal to Template:cpp, Template:cpp is used instead.

Return value

Template:return none

Template:example cpp

Template:see also

saves the context
(function macro) [edit]