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/demo/twolevel.c

22 lines
340 B
C
Raw Normal View History

#include "exclib.h"
/*
* What this example shows:
* 1- That an exception will propagate up out of the current TRY/CATCH context
* 2- That an uncaught exception will generate an error
*/
int main(void)
{
TRY {
THROW(3, NULL);
} CATCH(3) {
THROW(3, NULL);
} ETRY;
EXCLIB_TRACE("Should never get here");
return 0;
}