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 #include <Directory.h> 10 #include <File.h> 11 #include <Message.h> 12 #include <Node.h> 13 14 // #define DBG 15 16 #ifdef DBG 17 void write_debug_stream(const char *, ...); 18 void DUMP_BFILE(BFile *file, const char *name); 19 void DUMP_BMESSAGE(BMessage *msg); 20 void DUMP_BDIRECTORY(BDirectory *dir); 21 void DUMP_BNODE(BNode *node); 22 #define DBGMSG(args) write_debug_stream args 23 #else 24 #define DUMP_BFILE(file, name) (void)0 25 #define DUMP_BMESSAGE(msg) (void)0 26 #define DUMP_BDIRECTORY(dir) (void)0 27 #define DUMP_BNODE(node) (void)0 28 #define DBGMSG(args) (void)0 29 #endif 30 31 #endif /* __DBGMSG_H */ 32