On 9/11/07, Rafa Gaitan <[EMAIL PROTECTED]> wrote: > > #define GL_DEIFINE(name, value) \ > > #ifndef name \ > > #define name value\ > > #endif > > > > Then in the header have: > > > > GL_DEFINE(GL_SAMPLER_1D_ARRAY_EXT, 0x8DC0) > > > > Thoughts? > > I agree with this solution... the only problem is to pay attention on all > GL_* definitions inside osg: > > OpenSceneGraph/include$ grep "define" * -R | grep GL_ | wc -l > 1240 > > so... I hope sed comes to help us! :)
Even worse a problem exists with my little macro... it simply doesn't compile as the internal #ifndef is treated as a quoting of the variable ifndef which of course doesn't exist. So... back to square one. Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org