8 ULONG
DbgPrint(PCH Format
,...);
10 #define DPRINT1 DbgPrint("(%s:%d:%s) ",__FILE__,__LINE__,__FUNCTION__), DbgPrint
12 #if !defined(DBG) || !defined(YDEBUG)
14 #define DPRINT(args...)
19 #define DPRINT DbgPrint("(%s:%d:%s) ",__FILE__,__LINE__,__FUNCTION__), DbgPrint
22 #define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
27 /* Exported definitions and macros */
29 /* These function return a printable version of a string, including
30 quotes. The string will be valid for some time, but not indefinitely
31 as strings are re-used. */
32 extern const char *wine_dbgstr_an( const char * s
, int n
);
33 extern const char *wine_dbgstr_wn( const WCHAR
*s
, int n
);
34 extern const char *wine_dbgstr_guid( const struct _GUID
*id
);
36 inline static const char *debugstr_an( const char * s
, int n
) { return wine_dbgstr_an( s
, n
); }
37 inline static const char *debugstr_wn( const WCHAR
*s
, int n
) { return wine_dbgstr_wn( s
, n
); }
38 inline static const char *debugstr_guid( const struct _GUID
*id
) { return wine_dbgstr_guid(id
); }
39 inline static const char *debugstr_a( const char *s
) { return wine_dbgstr_an( s
, 80 ); }
40 inline static const char *debugstr_w( const WCHAR
*s
) { return wine_dbgstr_wn( s
, 80 ); }
41 inline static const char *debugres_a( const char *s
) { return wine_dbgstr_an( s
, 80 ); }
42 inline static const char *debugres_w( const WCHAR
*s
) { return wine_dbgstr_wn( s
, 80 ); }
45 #define TRACE_(ch) DPRINT
47 #define TRACE_ON(ch) 0
49 #define TRACE_ON(ch) 1
53 #define WARN_(ch) DPRINT
61 #define FIXME_(ch) DPRINT1
63 #define FIXME_ON(ch) 0
65 #define FIXME_ON(ch) 1
69 #define ERR_(ch) DPRINT1
76 #define DECLARE_DEBUG_CHANNEL(ch)
77 #define DEFAULT_DEBUG_CHANNEL(ch)
79 #define WINE_DECLARE_DEBUG_CHANNEL(ch) DECLARE_DEBUG_CHANNEL(ch)
80 #define WINE_DEFAULT_DEBUG_CHANNEL(ch) DEFAULT_DEBUG_CHANNEL(ch)
82 #define DPRINTF DPRINT
83 #define MESSAGE DPRINT
85 #endif /* __WINE_DEBUG_H */