Hi, I were looking through some of the CEGUI code. In the file CEGUILogger.h at line 151 through 159 there is a macro definition to make "insane" logging. The weird thing about this macro is that the comment says that the insane logging are excluded from non-debug builds, but if you look at the code it is only excluded if DEBUG or _DEBUG is defined. Don't know if it's a bug or what, just wanted to tell.
The code for the macro(including comment) is this:
/*************************************************************************
This macro is used for 'Insane' level logging so that those items are
excluded from non-debug builds
*************************************************************************/
#if defined(DEBUG) || defined (_DEBUG)
# define CEGUI_LOGINSANE( message )
#else
# define CEGUI_LOGINSANE( message ) CEGUI::Logger::getSingleton().logEvent((message), CEGUI::Insane);
#endif
Weird macro in "CEGUILogger.h"
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Weird macro in "CEGUILogger.h"
Hi,
I fixed this a while back in CVS-HEAD, though must have forgotten to do the fix in the 0.2.x branch; I'll make a note to do this as soon as I get CVS write access back.
Thanks
CE.
I fixed this a while back in CVS-HEAD, though must have forgotten to do the fix in the 0.2.x branch; I'll make a note to do this as soon as I get CVS write access back.
Thanks
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 15 guests
