xref: /haiku/src/add-ons/print/transports/shared/DbgMsg.h (revision 1e36cfc2721ef13a187c6f7354dc9cbc485e89d3)
1 // Sun, 18 Jun 2000
2 // Y.Takagi
3 
4 #ifndef __DBGMSG_H
5 #define __DBGMSG_H
6 
7 #ifdef _DEBUG
8 	void write_debug_stream(const char *, ...);
9 	void DUMP_BFILE(BFile *file, const char *name);
10 	void DUMP_BMESSAGE(BMessage *msg);
11 	void DUMP_BDIRECTORY(BDirectory *dir);
12 	#define DBGMSG(args)	write_debug_stream args
13 #else
14 	#define DUMP_BFILE(file, name)	(void)0
15 	#define DUMP_BMESSAGE(msg)		(void)0
16 	#define DUMP_BDIRECTORY(dir)	(void)0
17 	#define DBGMSG(args)			(void)0
18 #endif
19 
20 #endif	/* __DBGMSG_H */
21