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.
14 lines
200 B
C
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);
|
|
}
|
|
|