set_jmp
提供: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 */ |
||
タイプ
envの変数jmp_bufに現在の実行コンテキストを保存します。この変数は、後でlongjmp機能により、現在の実行コンテキストを復元するために使用することができます。 longjmp関数への呼び出しが行われたとき、つまり、実行はjmp_bufに渡さlongjmp変数を構築し、特定の呼び出しサイトで継続する。その場合setjmpカントー戻り値は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.
目次 |
[編集] パラメータ
| env | - | にプログラムの実行状態を保存するための変数.
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. |
[編集] 値を返します
0マクロは元のコードが呼び出され、実行コンテキストが
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.
非ゼロ値の非ローカルジャンプがちょうど行われていた場合。 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.
[編集] 例
| This section is incomplete Reason: no example |
[編集] も参照してください
| 指定した場所にジャンプします 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. (機能) | |
| C++ documentation for setjmp
| |