Wavelet and Image class library  1.3.2
debug.h
Go to the documentation of this file.
00001 /* 
00002  * Debug helper functions...
00003  *
00004  * $Date$
00005  * $Revision$
00006  *
00007  */
00008 
00009 #ifndef DEBUG_H__
00010 #define DEBUG_H__
00011 
00015 #if !defined (NDEBUG) && !defined (DPRINTF) && !defined (_WIN32_WCE)
00016 
00017 int debug_printf (const char *tmpl, ...);
00018 
00019 #define STRR(X) #X
00020 #define STR(X) STRR(X)
00021 #define DPRINTF(X) \
00022   (debug_printf("DEBUG %s [%s]: ", __FILE__, STR(__LINE__)), debug_printf X)
00023 
00024 #else /* NDEBUG */
00025 
00026 #ifdef DPRINTF
00027 #undef DPRINTF
00028 #endif
00029 #define DPRINTF(x)
00030 
00031 #endif /* NDEBUG */
00032 
00035 #endif /* DEBUG_H__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines