Bringing over latest (broken) copy of the library

This commit is contained in:
2011-07-16 23:05:16 -07:00
parent 04fb251fe8
commit 8cc4ee6b6a
5 changed files with 335 additions and 33 deletions

18
exception_test_simple.c Normal file
View File

@@ -0,0 +1,18 @@
#include "exclib.h"
int main(void)
{
exclib_register_signals();
TRY {
exclib_print_exception_stack(__FILE__, (char *)__func__, __LINE__);
THROW(2, NULL);
} CATCH(2) {
exclib_print_exception_stack(__FILE__, (char *)__func__, __LINE__);
THROW(3, NULL);
} CATCH(3) {
} FINALLY {
exclib_print_exception_stack(__FILE__, (char *)__func__, __LINE__);
return 0;
} ETRY;
}