9 /* Add ROS Master debug functions if not added yet */
10 #ifndef __INTERNAL_DEBUG
16 #include <reactos/debug.h>
20 #define __FUNCTION__ ""
21 #define inline __inline
24 unsigned long DbgPrint(char *Format
,...);
28 /* Exported definitions and macros */
30 /* These function return a printable version of a string, including
31 quotes. The string will be valid for some time, but not indefinitely
32 as strings are re-used. */
33 extern const char *wine_dbgstr_w( const WCHAR
*s
);
34 extern const char *wine_dbgstr_an( const char * s
, int n
);
35 extern const char *wine_dbgstr_wn( const wchar_t *s
, int n
);
36 extern const char *wine_dbgstr_guid( const struct _GUID
*id
);
37 extern const char *wine_dbgstr_longlong( unsigned long long ll
);
38 extern const char *wine_dbg_sprintf( const char *format
, ... );
40 inline static const char *debugstr_an( const char * s
, int n
) { return wine_dbgstr_an( s
, n
); }
41 inline static const char *debugstr_wn( const wchar_t *s
, int n
) { return wine_dbgstr_wn( s
, n
); }
42 inline static const char *debugstr_guid( const struct _GUID
*id
) { return wine_dbgstr_guid(id
); }
43 inline static const char *debugstr_a( const char *s
) { return wine_dbgstr_an( s
, 80 ); }
44 inline static const char *debugstr_w( const wchar_t *s
) { return wine_dbgstr_wn( s
, 80 ); }
45 inline static const char *debugres_a( const char *s
) { return wine_dbgstr_an( s
, 80 ); }
46 inline static const char *debugres_w( const wchar_t *s
) { return wine_dbgstr_wn( s
, 80 ); }
48 static inline const char *wine_dbgstr_point( const POINT
*pt
)
50 if (!pt
) return "(null)";
51 return wine_dbg_sprintf( "(%ld,%ld)", pt
->x
, pt
->y
);
54 static inline const char *wine_dbgstr_size( const SIZE
*size
)
56 if (!size
) return "(null)";
57 return wine_dbg_sprintf( "(%ld,%ld)", size
->cx
, size
->cy
);
60 static inline const char *wine_dbgstr_rect( const RECT
*rect
)
62 if (!rect
) return "(null)";
63 return wine_dbg_sprintf( "(%ld,%ld)-(%ld,%ld)", rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
67 #define TRACE_(ch) DPRINT
69 #define TRACE_ON(ch) 0
71 #define TRACE_ON(ch) 1
74 #define WINE_TRACE DPRINT
75 #define WINE_TRACE_(ch) DPRINT
77 #define WINE_TRACE_ON(ch) 0
79 #define WINE_TRACE_ON(ch) 1
83 #define WARN_(ch) DPRINT
94 #define FIXME_(ch) DPRINT1
96 #define FIXME_ON(ch) 0
98 #define FIXME_ON(ch) 1
104 #define WINE_FIXME DPRINT1
105 #define WINE_FIXME_(ch) DPRINT1
107 #define WINE_FIXME_ON(ch) 0
109 #define WINE_FIXME_ON(ch) 1
113 #define ERR_(ch) DPRINT1
120 #define WINE_ERR DPRINT1
121 #define WINE_ERR_(ch) DPRINT1
123 #define WINE_ERR_ON(ch) 0
125 #define WINE_ERR_ON(ch) 1
128 #define DECLARE_DEBUG_CHANNEL(ch)
129 #define DEFAULT_DEBUG_CHANNEL(ch)
131 #define WINE_DECLARE_DEBUG_CHANNEL(ch) DECLARE_DEBUG_CHANNEL(ch)
132 #define WINE_DEFAULT_DEBUG_CHANNEL(ch) DEFAULT_DEBUG_CHANNEL(ch)
134 #define DPRINTF DPRINT
135 #define MESSAGE DPRINT
137 #endif /* __WINE_DEBUG_H */