Commit f31dd1cd authored by Maciej Suminski's avatar Maciej Suminski

PNS debug output is enabled with PNS_DEBUG define.

parent def53707
...@@ -32,10 +32,15 @@ static inline void _trace_print( const char* aFuncName, int level, const std::st ...@@ -32,10 +32,15 @@ static inline void _trace_print( const char* aFuncName, int level, const std::st
#endif #endif
} }
#define TRACE( level, fmt, ... ) \ #ifdef PNS_DEBUG
_trace_print( __FUNCTION__, level, ( boost::format( fmt ) % __VA_ARGS__ ).str() ); #define TRACE( level, fmt, ... ) \
_trace_print( __FUNCTION__, level, ( boost::format( fmt ) % __VA_ARGS__ ).str() );
#define TRACEn( level, msg ) \ #define TRACEn( level, msg ) \
_trace_print( __FUNCTION__, level, std::string( msg ) ); _trace_print( __FUNCTION__, level, std::string( msg ) );
#else
#define TRACE( ... )
#define TRACEn( ... )
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment