swig/Examples/test-suite/c/c_backend_cpp_exception_runme.c
2012-07-31 21:15:33 +00:00

13 lines
No EOL
244 B
C

#include <assert.h>
#include "c_backend_cpp_exception/c_backend_cpp_exception_proxy.h"
int main()
{
assert(checkVal == 0);
throwSomeKnownException();
assert(checkVal == 1);
throwSomeUnknownException();
assert(checkVal == 2);
return 0;
}