longjmp
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>| Definido no cabeçalho <setjmp.h>
|
||
void longjmp( jmp_buf env, int status ); |
||
Carrega o
env contexto de execução salvo por uma chamada anterior a setjmp. Esta função não retorna. O controle é transferido para o local chamado do setjmp macro que criou env. setjmp que retorna o valor, passado como o status.Original:
Loads the execution context
env saved by a previous call to setjmp. This function does not return. Control is transferred to the call site of the macro setjmp that set up env. That setjmp then returns the value, passed as the status.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.
Se a função que chamou setjmp foi encerrado, o comportamento é indefinido (em outras palavras, apenas saltos longos até a pilha de chamadas são permitidos)
Original:
If the function that called setjmp has exited, the behavior is undefined (in other words, only long jumps up the call stack are allowed)
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.
Não destruidores para objetos automáticos são chamados. Se a substituição de
longjmp com throw e setjmp com catch iria executar um destrutor não-trivial para qualquer objeto automático, o comportamento de tais longjmp é indefinido.Original:
No destructors for automatic objects are called. If replacing of
longjmp with throw and setjmp with catch would execute a non-trivial destructor for any automatic object, the behavior of such longjmp is undefined.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.
Parâmetros
| env | - | variável referente ao estado de execução do programa guardado por setjmp
Original: variable referring to the execution state of the program saved by setjmp The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| status | - | o valor para retornar de setjmp. Se for igual a
0, 1 é usado em vez dissoOriginal: the value to return from setjmp. If it is equal to 0, 1 is used insteadThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
(Nenhum)
Original:
(none)
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.
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
Veja também
salva o contexto Original: saves the context The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função macro) | |
C++ documentation for longjmp
| |