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. |
| Defined in header <setjmp.h>
|
||
| #define setjmp(env) /* implementation-defined */ |
||
Guarda el contexto de ejecución actual en una variable de
env jmp_buf tipo. Esta variable puede utilizarse posteriormente para restaurar el contexto de ejecución actual en función longjmp. Esto es, cuando una llamada a función longjmp está hecho, la ejecución continúa en el sitio de llamada particular, que construye la variable jmp_buf pasa a longjmp. En ese caso vuelve setjmp valor aunque pasó a 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.
Contenido |
[editar] Parámetros
| env | - | variable para guardar el estado de ejecución del programa para .
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. |
[editar] Valor de retorno
0 si la macro fue llamado por el código original y el contexto de ejecución se guardó en
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.
Valor distinto de cero si el salto no local se acaba de realizar. El valor de retorno de la misma pasa a 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.
[editar] Ejemplo
| This section is incomplete Reason: no example |
[editar] Ver también
| salta a la ubicación especificada 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. (función) | |
| C++ documentation for setjmp
| |