diff -r 4eb2df7f7cbe -r ff53afa8ad05 inc/mpxvideo_debug.h --- a/inc/mpxvideo_debug.h Fri Apr 30 09:52:11 2010 +0300 +++ b/inc/mpxvideo_debug.h Fri May 14 15:14:51 2010 +0300 @@ -41,7 +41,7 @@ #ifdef _MPX_FILE_LOGGING_ #define FU_DEBUG MPXDebug::FileLog #else - #define FU_DEBUG MPXDebug::NullLog + #define FU_DEBUG #endif #endif @@ -49,15 +49,6 @@ class MPXDebug { public: - inline static void NullLog( TRefByValue /*aFmt*/, ... ) - { - } - - inline static void NullLog( TRefByValue /*aFunctionName*/, - TRefByValue /*aFmt*/, ... ) - { - } - inline static void FileLog( TRefByValue aFmt, ... ) { VA_LIST list; @@ -77,8 +68,8 @@ #define MPX_DEBUG TFusionLog::FusionLog #define MPX_ENTER_EXIT TEnterExitLog _s #else - #define MPX_DEBUG MPXDebug::NullLog - #define MPX_ENTER_EXIT MPXDebug::NullLog + #define MPX_DEBUG + #define MPX_ENTER_EXIT #endif @@ -160,8 +151,13 @@ FU_DEBUG(_KMPXErrorInfo, aErr, MPX_S(__FILE__), __LINE__);\ } -#define MPX_TRAP(_r, _s) TRAP(_r,_s);MPX_ERROR_LOG(_r); -#define MPX_TRAPD(_r, _s) TRAPD(_r,_s);MPX_ERROR_LOG(_r); +#ifdef _DEBUG + #define MPX_TRAP(_r, _s) TRAP(_r,_s);MPX_ERROR_LOG(_r); + #define MPX_TRAPD(_r, _s) TRAPD(_r,_s);MPX_ERROR_LOG(_r); +#else // _DEBUG + #define MPX_TRAP(_r, _s) TRAP(_r,_s);(_r=_r); + #define MPX_TRAPD(_r, _s) TRAPD(_r,_s);(_r=_r); +#endif // _DEBUG #endif // __MPXVIDEO_DEBUG_H__