Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

dbug.h

Go to the documentation of this file.
00001 #ifndef _dbug_h
00002 #define _dbug_h
00003 
00004 #ifndef DBUG_OFF  //if DBUG_OFF is defined, no debug prints are produced
00005 
00006 void _db_setfile(char *name);
00007 void _db_setkey(char *keyword);
00008 void _db_print (const char *format,...);
00009 void _db_closefile();
00010 
00011 #define DBUG_SETSTDERR() \
00012         { _db_setfile(stderr); }
00013 #define DBUG_SETFILE(name) \
00014         { _db_setfile(name); }
00015 #define DBUG_CLOSEFILE() \
00016         { _db_closefile(); }
00017 
00018 #define DBUG_PRINT(keyword,arglist) \
00019   { _db_setkey(keyword); _db_print arglist; }
00020 
00021 #define DBUG_ENTER(a1)
00022 #define DBUG_LEAVE 
00023 #define DBUG_RETURN(a1) return(a1)
00024 #define DBUG_PUSH(a1) {}
00025 #define DBUG_POP() {}
00026 #define DBUG_PROCESS(a1) {}
00027 
00028 #else //DBUG_OFF
00029 
00030 #define DBUG_SETSTDERR() 
00031 #define DBUG_SETFILE(name) 
00032 #define DBUG_CLOSEFILE() 
00033 #define DBUG_PRINT(keyword,arglist) {}
00034 #define DBUG_ENTER(a1)
00035 #define DBUG_LEAVE 
00036 #define DBUG_RETURN(a1) return(a1)
00037 #define DBUG_PUSH(a1) {}
00038 #define DBUG_POP() {}
00039 #define DBUG_PROCESS(a1) {}
00040 
00041 #endif  //DBUG_OFF
00042 
00043 #endif

Generated on Mon Nov 25 12:46:28 2002 for qadpz by doxygen1.2.18