Weird macro in "CEGUILogger.h"
Posted: 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
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