3 #include "IObject.hpp" // just to make sure it compiles
7 #define RUN(s, stuff) do { \
12 #define RUNCHECK(s, stuff) do { \
14 assert((int)(obj->s stuff) == 1); \
20 printf("C++ object in C++:\n");
22 ITest
*obj
= get_cppobj();
27 RUNCHECK(boolret
, ());
30 IObject
*o
= (IObject
*)1;
33 const char *str
= (const char *)1;
35 RUN(objparm
, (*o
, o
, o
));
36 RUN(intparm
, (i
, i
, i
));
37 RUN(intparm_simple
, (i
));
38 RUN(boolparm
, (b
, b
, b
));
39 RUN(strparm
, (str
, str
, str
));