Page 1 of 1

Weird macro in "CEGUILogger.h"

Posted: Mon Mar 28, 2005 12:49
by CTar
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

Re: Weird macro in "CEGUILogger.h"

Posted: Mon Mar 28, 2005 15:04
by CrazyEddie
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.