24 lines
324 B
C
24 lines
324 B
C
#include "exclib.h"
|
|
|
|
/*
|
|
* What this demo shows:
|
|
* 1- The general usage of this library
|
|
* 2- That a basic usage example works
|
|
*/
|
|
|
|
int main(void)
|
|
{
|
|
EXCLIB_TRACE("No stack to print?");
|
|
|
|
TRY {
|
|
THROW(3, NULL);
|
|
} CATCH(3) {
|
|
EXCLIB_TRACE("Caught 3");
|
|
} ETRY;
|
|
|
|
EXCLIB_TRACE("Exiting program");
|
|
|
|
return 0;
|
|
|
|
}
|