1 /* 2 * DbgMsg.h 3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved. 4 */ 5 6 #ifndef __DBGMSG_H 7 #define __DBGMSG_H 8 9 //#define DBG 10 11 #ifdef DBG 12 void write_debug_stream(const char *, ...); 13 void DUMP_BFILE(BFile *file, const char *name); 14 void DUMP_BMESSAGE(BMessage *msg); 15 void DUMP_BDIRECTORY(BDirectory *dir); 16 void DUMP_BNODE(BNode *node); 17 #define DBGMSG(args) write_debug_stream args 18 #else 19 #define DUMP_BFILE(file, name) (void)0 20 #define DUMP_BMESSAGE(msg) (void)0 21 #define DUMP_BDIRECTORY(dir) (void)0 22 #define DUMP_BNODE(node) (void)0 23 #define DBGMSG(args) (void)0 24 #endif 25 26 #endif /* __DBGMSG_H */ 27