Fix for issue #2, standardized naming on EXCLIB_ scheme; moved EXC_STATUS_LIST to EXCLIB_EXCEPTION; added some new demos and gave old demos more sensible names. Various other small improvements.
This commit is contained in:
14
demo/helpers.c
Normal file
14
demo/helpers.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "exclib.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
TRY {
|
||||
THROW_ZERO(NULL, EXC_NULLPOINTER, "I just threw with THROW_ZERO");
|
||||
} CATCH ( EXC_NULLPOINTER ) {
|
||||
THROW_NONZERO(strcmp("not", "equal"),
|
||||
3,
|
||||
"strcmp was nonzero!");
|
||||
} ETRY;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user