Akos Balazs wrote:
Hi Antonio,
On Thu, 2 Mar 2006, Antonio Bleile wrote:
On Thu, 2 Mar 2006, Antonio Bleile wrote:
Yep... I uses #undef debug before osg headers and #define debug 0 after
the inclusion. The 3rd party lib is template based and instantiates a
class in the cpp file. so... Well. Bit ugly.
Maybe (most probably :) I'm missing something, but shouldn't the "debug"
variables in the various osgInit() functions be inside the osg::
namespace?
The preprocessor doesn't care about namespaces I think.
Oh yeah, that's right. And that's why generic #defines like "debug" are
a bad thing IMHO. Worse then the #undef hacks you mentioned, but that's
just my .02 euros...
Yup. First rule of defines: Prefix them!
/Marcus
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users