set_jmp
De 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>| Déclaré dans l'en-tête <setjmp.h>
|
||
#define setjmp(env) /* implementation-defined */ |
||
Enregistre le contexte d'exécution actuel dans un
env variable de jmp_buf type. Cette variable peut ensuite être utilisé pour restaurer le contexte d'exécution actuel en fonction longjmp. Autrement dit, quand un appel à la fonction longjmp est faite, l'exécution se poursuit sur le site appel particulier qui a construit la variable jmp_buf passé à longjmp. Dans ce cas, les rendements setjmp tho valeur passée à 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.
Paramètres
| env | - | variable pour économiser de l'état d'exécution du programme de .
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. |
Retourne la valeur
0 si la macro a été appelée par le code original et le contexte d'exécution a été enregistré env .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.
Une valeur non nulle si un saut non local a été réalisée juste. La valeur de retour dans le même passé à
longjmp .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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
saute à l'emplacement spécifié 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. (fonction) | |
C++ documentation for setjmp
| |