TuttleOFX
1
|
00001 #ifndef _TUTTLE_COMMON_DEBUG_HPP_ 00002 #define _TUTTLE_COMMON_DEBUG_HPP_ 00003 00004 // pre-processeur directives : 00005 // # : convert to string 00006 // ## : concatenate (or before __VA_ARGS__ to indicate that it may be empty) 00007 // __FILE__ : filename 00008 // __LINE__ : line number 00009 // __FUNCTION__ : function declaration 00010 // __PRETTY_FUNCTION__ : function name 00011 // __DATE__ : "Mmm dd yyyy" 00012 // __TIME__ : "hh:mm:ss" 00013 00014 //_____________________________________________________________________________ 00015 // Macros to output on terminal only in debug mode 00016 00017 /// @see TUTTLE_LOG 00018 #define TUTTLE_LOG_DEBUG TUTTLE_LOG 00019 00020 #define TUTTLE_LOG_TRACE_DEBUG TUTTLE_LOG_TRACE 00021 #define TUTTLE_LOG_INFO_DEBUG TUTTLE_LOG_INFO 00022 00023 /// @see TUTTLE_LOG_INFOS 00024 #define TUTTLE_LOG_INFOS_DEBUG TUTTLE_LOG_INFOS 00025 00026 /// @see TUTTLE_LOG_INFOS 00027 #define TUTTLE_LOG_WITHINFOS_DEBUG TUTTLE_LOG_WITHINFOS 00028 00029 /// @see TUTTLE_IF_DEBUG 00030 #define TUTTLE_IF_DEBUG(... ) __VA_ARGS__ 00031 00032 #define TUTTLE_LOG_VAR_DEBUG TUTTLE_LOG_VAR 00033 #define TUTTLE_LOG_VAR2_DEBUG TUTTLE_LOG_VAR2 00034 #define TUTTLE_LOG_VAR3_DEBUG TUTTLE_LOG_VAR3 00035 #define TUTTLE_LOG_VAR4_DEBUG TUTTLE_LOG_VAR4 00036 #define TUTTLE_LOG_INFOS_DEBUG TUTTLE_LOG_INFOS 00037 #define TUTTLE_LOG_WITHINFOS_DEBUG TUTTLE_LOG_WITHINFOS 00038 #define TUTTLE_LOG_WARNING_DEBUG TUTTLE_LOG_WARNING 00039 #define TUTTLE_LOG_ERROR_DEBUG TUTTLE_LOG_ERROR 00040 #define TUTTLE_LOG_FATALERROR_DEBUG TUTTLE_LOG_FATALERROR 00041 #define TUTTLE_LOG_EXCEPTION_DEBUG TUTTLE_LOG_EXCEPTION 00042 00043 #ifdef __WINDOWS__ 00044 #include <tuttle/common/system/windows/MemoryLeaks.hpp> 00045 #endif 00046 00047 #endif 00048