...
Code Block | ||
---|---|---|
| ||
jmp_buf buf; void f() { if (setjmp(buf) != 0) { /* longjmp was invoked */ } else { h(); } return; } void h() { /* ... */ longjmp(buf, 1); } |
...
...
Code Block | ||
---|---|---|
| ||
jmp_buf buf; void f() { if (setjmp(buf) != 0) { /* longjmp was invoked */ } else { h(); } return; } void h() { /* ... */ longjmp(buf, 1); } |
...