set_jmp
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| definiert in Header <setjmp.h>
|
||
#define setjmp(env) /* implementation-defined */ |
||
Speichert die aktuelle Ausführungskontext in eine Variable
env vom Typ jmp_buf. Diese Variable kann später verwendet, um die aktuelle Ausführung Kontext longjmp Funktion wiederherzustellen. Das heißt, wenn ein Anruf an longjmp Funktion gemacht wird, geht die Ausführung zum bestimmten Anruf Website, die die variable jmp_buf übergebenen longjmp konstruiert. In diesem Fall setjmp kehrt tho übergebenen Wert longjmp .Original:
Saves the current execution context into a variable
env of type jmp_buf. This variable can later be used to restore the current execution context by longjmp function. That is, when a call to longjmp function is made, the execution continues at the particular call site that constructed the jmp_buf variable passed to longjmp. In that case setjmp returns tho value passed to longjmp.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| env | - | Variable, um den Ausführungszustand des Programms zu retten .
Original: variable to save the execution state of the program to. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Rückgabewert
0 wenn das Makro durch den ursprünglichen Code aufgerufen wurde und die Ausführung Kontext wurde env gespeichert .Original:
0 if the macro was called by the original code and the execution context was saved to env.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Nicht-Null-Wert, wenn ein Sprung nicht lokalen gerade ausgeführt wurde. Der Rückgabewert der gleiche wie für
longjmp übergeben .Original:
Non-zero value if a non-local jump was just performed. The return value in the same as passed to
longjmp.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Beispiel
| This section is incomplete Reason: no example |
Siehe auch
springt zum angegebenen Ort Original: jumps to specified location The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) | |
C++ documentation for setjmp
| |