1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#ifndef subdir2_hello_i_ #define subdir2_hello_i_ %{ typedef char * TypedefString; #include <string.h> %} %inline %{ struct B { int bb; }; TypedefString importtest2(TypedefString str) { strcpy(str, "white"); return str; } %} #endif //subdir2_hello_i_