2 * Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
12 jump_to_top_level(jmp_buf *state
, int value
)
14 siglongjmp(*state
, value
);
19 main(int argc
, char **argv
)
24 if ((value
= sigsetjmp(state
, 1)) != 0) {
25 printf("failed with: %d!\n", value
);
27 printf("here I am: %d\n", value
);
28 jump_to_top_level(&state
, 42);
29 printf("you won't see me!\n");