swig/Examples/test-suite/c/enums_runme.c
Vadim Zeitlin 690bf8e020 Replace SWIG_exit() with just exit() in test code
SWIG_exit() is not declared anywhere, so would need to be explicitly
declared to avoid warnings, while exit() can be declared just by
including <stdlib.h>, so prefer to use the latter, especially because
they're one and the same anyhow.
2019-07-24 20:47:59 +02:00

14 lines
200 B
C

#include <assert.h>
#include <stdlib.h>
#include "enums/enums_wrap.h"
int main() {
assert(GlobalInstance == globalinstance1);
assert(Char == 'a');
bar2(1);
bar3(1);
bar1(1);
exit(0);
}