swig/Examples/test-suite/c/enums_runme.c
Vadim Zeitlin 3d21bb2c96 Hack around parser bug with char enum element values
Enum element somehow lose the single quotes around them, compensate for it in
C module code (other modules use module-specific constvalue feature to work
around it, but it seems better to do it in SWIG itself rather than leaving the
user code to deal with it).

This finally makes the "enums" unit test pass.
2016-04-16 00:25:50 +02:00

13 lines
185 B
C

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