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.
13 lines
185 B
C
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);
|
|
}
|
|
|