PNS debug output is enabled with PNS_DEBUG define.
This commit is contained in:
parent
def53707d5
commit
f31dd1cdaf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue