News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

tnlLog.h File Reference

tnlLog.h File Reference

#include "tnlBitSet.h"
#include "tnl.h"

Namespaces

namespace  TNL

Defines

#define TNLLogMessage(logType, message)   { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf("%s", message); TNL::LogType::setCurrent(NULL); } }
 Logs a message of the specified type to the currently active LogConsumers.

#define TNLLogMessageV(logType, message)   { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf message; TNL::LogType::setCurrent(NULL); } }
 Logs a printf-style variable argument message of the specified type to the currently active LogConsumers.

#define TNLLogEnable(logType, enabled)   { static TNL::LogTypeRef theType(#logType); theType.theLogType->isEnabled = enabled; }
#define TNLLogBlock(logType, code)   { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); { code } TNL::LogType::setCurrent(NULL); } }


Define Documentation

#define TNLLogMessage logType,
message   )     { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf("%s", message); TNL::LogType::setCurrent(NULL); } }
 

Logs a message of the specified type to the currently active LogConsumers.

#define TNLLogMessageV logType,
message   )     { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); logprintf message; TNL::LogType::setCurrent(NULL); } }
 

Logs a printf-style variable argument message of the specified type to the currently active LogConsumers.

#define TNLLogEnable logType,
enabled   )     { static TNL::LogTypeRef theType(#logType); theType.theLogType->isEnabled = enabled; }
 

#define TNLLogBlock logType,
code   )     { static TNL::LogTypeRef theType(#logType); if(theType.theLogType->isEnabled) { TNL::LogType::setCurrent(theType.theLogType); { code } TNL::LogType::setCurrent(NULL); } }