#ifndef _DEBUG_H #define _DEBUG_H #define DEBUG_FUNCTIONSTART 1 //indent++ in file output debug #define DEBUG_BLOCKSTART 2 //indent++ in file output debug #define DEBUG_LINE 4 //no indent, \n\r appended #define DEBUG_CHECK 8 //no indent, ... appended, no \n\r (for checking ...ok\n\r) #define DEBUG_RESULT 16 //no indent, \n\r appended #define DEBUG_BLOCKEND 32 //indent-- in file output debug #define DEBUG_FUNCTIONEND 64 //indent++ in file output debug #define DEBUG_LINE_QUALIFIED 128 //surround string by {} is that the length is evident #define DEBUG_RESULT_OK DEBUGPRINT("ok", DEBUG_RESULT) #define DEBUG_RESULT_FAIL DEBUGPRINT("failed", DEBUG_RESULT) #ifdef _DEBUG //debug system activated #define DEBUGPRINT(sMessage, iType) DebugPrint(sMessage, iType) #define DEBUGINIT DebugInit() #define DEBUGFINALISE DebugFinalise() #else //Release system #define DEBUGPRINT_EVENTS(sMessage, iType) 000 #define DEBUGPRINT(sMessage, iType) 000 #define DEBUGINIT 000 #define DEBUGFINALISE 000 #endif #endif