////////////////////////////////////////////////////////////////////////////// // Copyright � 1998,1999 PHD Computer Consultants Ltd // DebugPrint code header to add to a test driver // ///////////////////////////////////////////////////////////////////////////// #ifdef __cplusplus extern "C" { #endif #define DEBUGPRINT 0 // Set to 1 to do DebugPrints in free version ///////////////////////////////////////////////////////////////////////////// #if DBG || DEBUGPRINT #define DODEBUGPRINT 1 #else #define DODEBUGPRINT 0 #endif #if DODEBUGPRINT void DebugPrintInit(char*); void DebugPrintClose(); void DebugPrintMsg(char*); #else #define DebugPrintInit(x) #define DebugPrintClose() #define DebugPrintMsg(x) #endif void DebugPrint2(int max, const char *format, ... ); void DebugPrint(const char *format, ... ); ///////////////////////////////////////////////////////////////////////////// #ifdef __cplusplus } #endif /////////////////////////////////////////////////////////////////////////////
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)