Weird macro in "CEGUILogger.h"

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
CTar
Just popping in
Just popping in
Posts: 1
Joined: Mon Mar 28, 2005 12:42

Weird macro in "CEGUILogger.h"

Postby CTar » Mon Mar 28, 2005 12:49

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Weird macro in "CEGUILogger.h"

Postby CrazyEddie » Mon Mar 28, 2005 15:04

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.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 15 guests