Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
jmp_buf buf;

void f() {
  if (setjmp(buf) != 0) {
    /* longjmp was invoked */
  } else {
    h();
  }
  return;
}

void h() {
  /* ... */
  longjmp(buf, 1);
}

...