-
Sorry, I didn't point that out: I did _not_ add the AssertMacros.h header intentionally (this is just for the example code).
In our code I just added the umbrella header or it is another header which includes the AssertMacros.h.
I agree that apple is polluting the global namespace with that check macro. Maybe a hint in some FAQ documents is enough for that issue because the...
2009-03-17 23:39:13 UTC in SWIG
-
check-test.i seems to be the shortest input file showing the problem.
The commands for testing I used are:
swig -ruby -c++ check-test.i
gcc -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/Headers check-test_wrap.cxx
For me it shows 5 compiler errors. If the bug is fixed there should be just linker errors.
2009-03-15 00:26:29 UTC in SWIG
-
File Added: check-test.i.
2009-03-15 00:23:39 UTC in SWIG
-
No, it doesn't help. That header file containing the check macro is somehow included through our own header files, which is done after the part generated by rubyhead.swg.
See http://svn.berlios.de/svnroot/repos/dsa-hl/rl/trunk/engine/script/swig/RlExports.i or http://svn.berlios.de/svnroot/repos/dsa-hl/rl/trunk/engine/script/swig for our SWIG input files.
However, a #undef check in our...
2009-03-14 00:57:35 UTC in SWIG
-
In Mac OS X the header file AssertMacros.h already defines check as a assertion macro. This leads to compiler errors for some generated code creating or using check identifiers:
E.g.:
template
struct traits_check {
static bool check(VALUE obj) {
int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
return SWIG_IsOK(res) ? true ...
2009-03-13 00:14:59 UTC in SWIG
-
We use SWIG to generate a Ruby binding for a computer game. For a class named Sound SWIG generates a symbol cSound, this is already defined in a Mac OS header, same for Container/cContainer or Item/cItem. Is it possible to change the prefix for the generated names?.
2009-03-09 23:24:14 UTC in SWIG
-
blakharaz committed revision 2534 to the OGRE Add-ons SVN repository, changing 2 files.
2008-12-11 20:35:22 UTC in OGRE Add-ons
-
blakharaz committed revision 2533 to the OGRE Add-ons SVN repository, changing 1 files.
2008-12-11 20:33:42 UTC in OGRE Add-ons
-
blakharaz committed revision 2532 to the OGRE Add-ons SVN repository, changing 12 files.
2008-12-11 20:31:39 UTC in OGRE Add-ons
-
blakharaz committed revision 2455 to the OGRE Add-ons SVN repository, changing 1 files.
2008-06-22 20:24:44 UTC in OGRE Add-ons