The Witchcraft Compiler Collection
WCC
 All Data Structures Files Functions Variables Typedefs Macros
Macros
longjmp.h File Reference
#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)
 

Macro Definition Documentation

#define CATCH (   x)    break; case x:

Definition at line 40 of file longjmp.h.

#define ETRY   break; } } }while(0)

Definition at line 42 of file longjmp.h.

#define FINALLY   break; } default: {

Definition at line 41 of file longjmp.h.

#define THROW (   x)    longjmp(ex_buf__, x)

Definition at line 43 of file longjmp.h.

#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

Definition at line 39 of file longjmp.h.