Added a CLEANUP mechanism to the exception handling library. Fixed a bug in the way setjmp() return codes were being handled that lead to infinite loops in some cases, exceptions getting missed in others. Made FINALLY {} a required element (unfortunately).
This commit is contained in:
10
demo/skeleton.c
Normal file
10
demo/skeleton.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "exclib.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
TRY {
|
||||
} CLEANUP {
|
||||
} EXCEPT {
|
||||
} FINALLY {
|
||||
} ETRY;
|
||||
}
|
||||
Reference in New Issue
Block a user