Forgot to do '-a' on the last commit 'cause git is silly like that...

This commit is contained in:
2011-07-27 22:34:53 -04:00
parent a7b038ff52
commit 26605a3220
5 changed files with 93 additions and 129 deletions

View File

@@ -2,17 +2,30 @@
int main(void)
{
exclib_register_signals();
EXCLIB_TRACE("No stack to print?");
TRY {
EXCLIB_TRACE("Inside TRY");
THROW(3, NULL);
} CATCH(3) {
EXCLIB_TRACE("Caught 3");
THROW(5, NULL);
} CATCH(5) {
EXCLIB_TRACE("Caught 5");
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;
THROW(6, NULL);
} CATCH (6) {
EXCLIB_TRACE("Caught 6");
THROW(7, NULL);
} ETRY;
} CATCH(7) {
EXCLIB_TRACE("Caught 7");
} FINALLY {
EXCLIB_TRACE("In finally clause");
} ETRY;
EXCLIB_TRACE("Exiting program");
return 0;
}