9f9891a144eb43658bc83f6946910fce6ea78495
9 /* Add ROS Master debug functions if not added yet */
10 #ifndef __INTERNAL_DEBUG
11 #include <reactos/debug.h>
15 #define __FUNCTION__ ""
16 #define inline __inline
19 unsigned long DbgPrint(char *Format
,...);
23 /* Exported definitions and macros */
25 /* These function return a printable version of a string, including
26 quotes. The string will be valid for some time, but not indefinitely
27 as strings are re-used. */
28 extern const char *wine_dbgstr_w( const WCHAR
*s
);
29 extern const char *wine_dbgstr_an( const char * s
, int n
);
30 extern const char *wine_dbgstr_wn( const wchar_t *s
, int n
);
31 extern const char *wine_dbgstr_guid( const struct _GUID
*id
);
32 extern const char *wine_dbgstr_longlong( unsigned long long ll
);
33 extern const char *wine_dbg_sprintf( const char *format
, ... );
35 inline static const char *debugstr_an( const char * s
, int n
) { return wine_dbgstr_an( s
, n
); }
36 inline static const char *debugstr_wn( const wchar_t *s
, int n
) { return wine_dbgstr_wn( s
, n
); }
37 inline static const char *debugstr_guid( const struct _GUID
*id
) { return wine_dbgstr_guid(id
); }
38 inline static const char *debugstr_a( const char *s
) { return wine_dbgstr_an( s
, 80 ); }
39 inline static const char *debugstr_w( const wchar_t *s
) { return wine_dbgstr_wn( s
, 80 ); }
40 inline static const char *debugres_a( const char *s
) { return wine_dbgstr_an( s
, 80 ); }
41 inline static const char *debugres_w( const wchar_t *s
) { return wine_dbgstr_wn( s
, 80 ); }
43 static inline const char *wine_dbgstr_point( const POINT
*pt
)
45 if (!pt
) return "(null)";
46 return wine_dbg_sprintf( "(%ld,%ld)", pt
->x
, pt
->y
);
49 static inline const char *wine_dbgstr_size( const SIZE
*size
)
51 if (!size
) return "(null)";
52 return wine_dbg_sprintf( "(%ld,%ld)", size
->cx
, size
->cy
);
55 static inline const char *wine_dbgstr_rect( const RECT
*rect
)
57 if (!rect
) return "(null)";
58 return wine_dbg_sprintf( "(%ld,%ld)-(%ld,%ld)", rect
->left
, rect
->top
, rect
->right
, rect
->bottom
);
62 #define TRACE_(ch) DPRINT
64 #define TRACE_ON(ch) 0
66 #define TRACE_ON(ch) 1
69 #define WINE_TRACE DPRINT
70 #define WINE_TRACE_(ch) DPRINT
72 #define WINE_TRACE_ON(ch) 0
74 #define WINE_TRACE_ON(ch) 1
78 #define WARN_(ch) DPRINT
89 #define FIXME_(ch) DPRINT1
91 #define FIXME_ON(ch) 0
93 #define FIXME_ON(ch) 1
99 #define WINE_FIXME DPRINT1
100 #define WINE_FIXME_(ch) DPRINT1
102 #define WINE_FIXME_ON(ch) 0
104 #define WINE_FIXME_ON(ch) 1
108 #define ERR_(ch) DPRINT1
115 #define WINE_ERR DPRINT1
116 #define WINE_ERR_(ch) DPRINT1
118 #define WINE_ERR_ON(ch) 0
120 #define WINE_ERR_ON(ch) 1
123 #define DECLARE_DEBUG_CHANNEL(ch)
124 #define DEFAULT_DEBUG_CHANNEL(ch)
126 #define WINE_DECLARE_DEBUG_CHANNEL(ch) DECLARE_DEBUG_CHANNEL(ch)
127 #define WINE_DEFAULT_DEBUG_CHANNEL(ch) DEFAULT_DEBUG_CHANNEL(ch)
129 #define DPRINTF DPRINT
130 #define MESSAGE DPRINT
132 #endif /* __WINE_DEBUG_H */