Make UEFI boot-platform build again
[haiku.git] / headers / libs / print / libprint / DbgMsg.h
blob5f8382a93a1c25c0d38cec45c8cfe6e53d945b6f
1 /*
2 * DbgMsg.h
3 * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
4 */
6 #ifndef __DBGMSG_H
7 #define __DBGMSG_H
9 #include <Directory.h>
10 #include <File.h>
11 #include <Message.h>
12 #include <Node.h>
14 #include <stdio.h>
16 // #define DBG
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
33 #endif /* __DBGMSG_H */