|
The Witchcraft Compiler Collection
WCC
|
#include <stdio.h>#include <setjmp.h>Go to the source code of this file.
Macros | |
| #define | TRY do { jmp_buf ex_buf__; switch( setjmp(ex_buf__) ) { case 0: while(1) { |
| #define | CATCH(x) break; case x: |
| #define | FINALLY break; } default: { |
| #define | ETRY break; } } }while(0) |
| #define | THROW(x) longjmp(ex_buf__, x) |
| #define TRY do { jmp_buf ex_buf__; switch( setjmp(ex_buf__) ) { case 0: while(1) { |
This code taken from http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html Licensed under MIT License
1.8.6