00001 #ifndef __NQLOGGING_H_INCLUDED_SW__ 00002 #define __NQLOGGING_H_INCLUDED_SW__ 00003 00004 #ifdef __NQ_RELEASE_MODE__ 00005 #define NQ_DBG(MSG) (void(0)) 00006 #define NQ_NO_LOGGING 1 00007 #define NQ_DEBUGMODE_ONLY(a) (void(0)) 00008 #else 00009 #define NQ_NO_LOGGING 0 00010 #define NQ_DEBUGMODE_ONLY(a) {a;} 00011 00012 #define NQ_DBG_TYP 1 00013 #define NQ_DBG(MSG) {exampleNQLoggingSetParameters( NQ_DBG_TYP, __FILE__, __LINE__); exampleNQLoggingHandler MSG ;} 00014 00015 extern void exampleNQLoggingSetParameters(int aType, const char *aSrcFile, const int aLine); 00016 extern void exampleNQLoggingHandler( const char *aFormatString,...); 00017 #endif 00018 00019 #endif // __NQLOGGING_H_INCLUDED_SW__