xref: /haiku/headers/libs/print/libprint/DbgMsg.h (revision 7457ccb4b2f4786525d3b7bda42598487d57ab7d)
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 #include <stdio.h>
15 
16 // #define DBG
17 
18 #ifdef DBG
19 	void write_debug_stream(const char *, ...)  __PRINTFLIKE(1,2);
20 	void DUMP_BFILE(BFile *file, const char *name);
21 	void DUMP_BMESSAGE(BMessage *msg);
22 	void DUMP_BDIRECTORY(BDirectory *dir);
23 	void DUMP_BNODE(BNode *node);
24 	#define DBGMSG(args)	write_debug_stream args
25 #else
26 	#define DUMP_BFILE(file, name)	(void)0
27 	#define DUMP_BMESSAGE(msg)		(void)0
28 	#define DUMP_BDIRECTORY(dir)	(void)0
29 	#define DUMP_BNODE(node)		(void)0
30 	#define DBGMSG(args)			(void)0
31 #endif
32 
33 #endif	/* __DBGMSG_H */
34