This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
exclib/exception_test_simple.c

19 lines
396 B
C

#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;
}