#include <stdarg.h>
#include <stdio.h>
#include <windef.h>
#include <guiddef.h>
Go to the source code of this file.
|
#define | __RELFILE__ __FILE__ |
|
#define | UNIMPLEMENTED WINE_FIXME("%s is UNIMPLEMENTED!\n", __FUNCTION__) |
|
#define | __WINE_GET_DEBUGGING_TRACE(dbch) ((dbch)->flags & (1 << __WINE_DBCL_TRACE)) |
|
#define | __WINE_GET_DEBUGGING_WARN(dbch) ((dbch)->flags & (1 << __WINE_DBCL_WARN)) |
|
#define | __WINE_GET_DEBUGGING_FIXME(dbch) ((dbch)->flags & (1 << __WINE_DBCL_FIXME)) |
|
#define | __WINE_GET_DEBUGGING_ERR(dbch) ((dbch)->flags & (1 << __WINE_DBCL_ERR)) |
|
#define | __WINE_GET_DEBUGGING(dbcl, dbch) __WINE_GET_DEBUGGING##dbcl(dbch) |
|
#define | __WINE_IS_DEBUG_ON(dbcl, dbch) (__WINE_GET_DEBUGGING##dbcl(dbch) && (__wine_dbg_get_channel_flags(dbch) & (1 << __WINE_DBCL##dbcl))) |
|
#define | __WINE_DPRINTF(dbcl, dbch) |
|
#define | __WINE_PRINTF_ATTR(fmt, args) |
|
#define | WINE_TRACE __WINE_DPRINTF(_TRACE,__wine_dbch___default) |
|
#define | WINE_TRACE_(ch) __WINE_DPRINTF(_TRACE,&__wine_dbch_##ch) |
|
#define | WINE_TRACE_ON(ch) __WINE_IS_DEBUG_ON(_TRACE,&__wine_dbch_##ch) |
|
#define | WINE_WARN __WINE_DPRINTF(_WARN,__wine_dbch___default) |
|
#define | WINE_WARN_(ch) __WINE_DPRINTF(_WARN,&__wine_dbch_##ch) |
|
#define | WINE_WARN_ON(ch) __WINE_IS_DEBUG_ON(_WARN,&__wine_dbch_##ch) |
|
#define | WINE_FIXME __WINE_DPRINTF(_FIXME,__wine_dbch___default) |
|
#define | WINE_FIXME_(ch) __WINE_DPRINTF(_FIXME,&__wine_dbch_##ch) |
|
#define | WINE_FIXME_ON(ch) __WINE_IS_DEBUG_ON(_FIXME,&__wine_dbch_##ch) |
|
#define | WINE_ERR __WINE_DPRINTF(_ERR,__wine_dbch___default) |
|
#define | WINE_ERR_(ch) __WINE_DPRINTF(_ERR,&__wine_dbch_##ch) |
|
#define | WINE_ERR_ON(ch) __WINE_IS_DEBUG_ON(_ERR,&__wine_dbch_##ch) |
|
#define | WINE_DECLARE_DEBUG_CHANNEL(ch) static struct __wine_debug_channel __wine_dbch_##ch = { (unsigned char)~0, #ch } |
|
#define | WINE_DEFAULT_DEBUG_CHANNEL(ch) |
|
#define | WINE_DPRINTF wine_dbg_printf |
|
#define | WINE_MESSAGE wine_dbg_printf |
|
#define | TRACE WINE_TRACE |
|
#define | TRACE_(ch) WINE_TRACE_(ch) |
|
#define | TRACE_ON(ch) WINE_TRACE_ON(ch) |
|
#define | WARN WINE_WARN |
|
#define | WARN_(ch) WINE_WARN_(ch) |
|
#define | WARN_ON(ch) WINE_WARN_ON(ch) |
|
#define | FIXME WINE_FIXME |
|
#define | FIXME_(ch) WINE_FIXME_(ch) |
|
#define | FIXME_ON(ch) WINE_FIXME_ON(ch) |
|
#define | ERR WINE_ERR |
|
#define | ERR_(ch) WINE_ERR_(ch) |
|
#define | ERR_ON(ch) WINE_ERR_ON(ch) |
|
#define | DPRINTF WINE_DPRINTF |
|
#define | MESSAGE WINE_MESSAGE |
|
|
unsigned char | __wine_dbg_get_channel_flags (struct __wine_debug_channel *channel) |
|
int | __wine_dbg_set_channel_flags (struct __wine_debug_channel *channel, unsigned char set, unsigned char clear) |
|
void | __wine_dbg_set_functions (const struct __wine_debug_functions *new_funcs, struct __wine_debug_functions *old_funcs, size_t size) |
|
const char * | wine_dbgstr_an (const char *s, int n) |
|
const char * | wine_dbgstr_wn (const WCHAR *s, int n) |
|
const char * | wine_dbg_sprintf (const char *format,...) __WINE_PRINTF_ATTR(1 |
|
const char int | wine_dbg_printf (const char *format,...) __WINE_PRINTF_ATTR(1 |
|
const char int int | wine_dbg_log (enum __wine_debug_class cls, struct __wine_debug_channel *ch, const char *func, const char *format,...) __WINE_PRINTF_ATTR(4 |
|
const char int int int | ros_dbg_log (enum __wine_debug_class cls, struct __wine_debug_channel *ch, const char *file, const char *func, const int line, const char *format,...) __WINE_PRINTF_ATTR(6 |
|
const char int int int static __inline const char * | wine_dbgstr_a (const char *s) |
|
static __inline const char * | wine_dbgstr_w (const WCHAR *s) |
|
static __inline const char * | wine_dbgstr_guid (const GUID *id) |
|
static __inline const char * | wine_dbgstr_point (const POINT *pt) |
|
static __inline const char * | wine_dbgstr_size (const SIZE *size) |
|
static __inline const char * | wine_dbgstr_rect (const RECT *rect) |
|
static __inline const char * | wine_dbgstr_longlong (ULONGLONG ll) |
|
static __inline const char * | debugstr_an (const char *s, int n) |
|
static __inline const char * | debugstr_wn (const WCHAR *s, int n) |
|
static __inline const char * | debugstr_guid (const struct _GUID *id) |
|
static __inline const char * | debugstr_a (const char *s) |
|
static __inline const char * | debugstr_w (const WCHAR *s) |
|
◆ __RELFILE__
◆ __WINE_DPRINTF
#define __WINE_DPRINTF |
( |
|
dbcl, |
|
|
|
dbch |
|
) |
| |
Value:struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define __WINE_GET_DEBUGGING(dbcl, dbch)
const char int int int ros_dbg_log(enum __wine_debug_class cls, struct __wine_debug_channel *ch, const char *file, const char *func, const int line, const char *format,...) __WINE_PRINTF_ATTR(6
const char int wine_dbg_printf(const char *format,...) __WINE_PRINTF_ATTR(1
Definition at line 143 of file debug.h.
◆ __WINE_GET_DEBUGGING
#define __WINE_GET_DEBUGGING |
( |
|
dbcl, |
|
|
|
dbch |
|
) |
| __WINE_GET_DEBUGGING##dbcl(dbch) |
◆ __WINE_GET_DEBUGGING_ERR
◆ __WINE_GET_DEBUGGING_FIXME
◆ __WINE_GET_DEBUGGING_TRACE
◆ __WINE_GET_DEBUGGING_WARN
◆ __WINE_IS_DEBUG_ON
◆ __WINE_PRINTF_ATTR
◆ DPRINTF
◆ ERR
◆ ERR_
◆ ERR_ON
◆ FIXME
◆ FIXME_
◆ FIXME_ON
◆ MESSAGE
◆ TRACE
◆ TRACE_
◆ TRACE_ON
◆ UNIMPLEMENTED
◆ WARN
◆ WARN_
◆ WARN_ON
◆ WINE_DECLARE_DEBUG_CHANNEL
◆ WINE_DEFAULT_DEBUG_CHANNEL
#define WINE_DEFAULT_DEBUG_CHANNEL |
( |
|
ch | ) |
|
◆ WINE_DPRINTF
◆ WINE_ERR
◆ WINE_ERR_
◆ WINE_ERR_ON
◆ WINE_FIXME
◆ WINE_FIXME_
◆ WINE_FIXME_ON
◆ WINE_MESSAGE
◆ WINE_TRACE
◆ WINE_TRACE_
◆ WINE_TRACE_ON
◆ WINE_WARN
◆ WINE_WARN_
◆ WINE_WARN_ON
◆ __wine_debug_class
Enumerator |
---|
__WINE_DBCL_FIXME | |
__WINE_DBCL_ERR | |
__WINE_DBCL_WARN | |
__WINE_DBCL_TRACE | |
__WINE_DBCL_INIT | |
Definition at line 49 of file debug.h.
◆ __wine_dbg_get_channel_flags()
Definition at line 83 of file debug.c.
91 if (opt)
return opt->
flags;
static void debug_init(void)
static struct __wine_debug_channel debug_options[MAX_DEBUG_OPTIONS]
static unsigned char default_flags
static int __cdecl cmp_name(const void *p1, const void *p2)
static int nb_debug_options
Referenced by ros_dbg_log(), and wine_dbg_log().
◆ __wine_dbg_set_channel_flags()
Definition at line 99 of file debug.c.
static void debug_init(void)
static struct __wine_debug_channel debug_options[MAX_DEBUG_OPTIONS]
static int __cdecl cmp_name(const void *p1, const void *p2)
static int nb_debug_options
◆ __wine_dbg_set_functions()
Definition at line 551 of file debug.c.
static struct __wine_debug_functions funcs
#define memcpy(s1, s2, n)
◆ debugstr_a()
Definition at line 389 of file debug.h.
const char * wine_dbgstr_an(const char *s, int n)
◆ debugstr_an()
Definition at line 386 of file debug.h.
const char * wine_dbgstr_an(const char *s, int n)
◆ debugstr_guid()
Definition at line 388 of file debug.h.
static __inline const char * wine_dbgstr_guid(const GUID *id)
◆ debugstr_w()
Definition at line 390 of file debug.h.
const char * wine_dbgstr_wn(const WCHAR *s, int n)
◆ debugstr_wn()
Definition at line 387 of file debug.h.
const char * wine_dbgstr_wn(const WCHAR *s, int n)
◆ ros_dbg_log()
◆ wine_dbg_log()
◆ wine_dbg_printf()
◆ wine_dbg_sprintf()
◆ wine_dbgstr_a()
Definition at line 187 of file debug.h.
const char * wine_dbgstr_an(const char *s, int n)
Referenced by AddERExcludedApplicationA(), D3DXCreateCubeTextureFromFileA(), D3DXCreateCubeTextureFromFileExA(), D3DXSaveSurfaceToFileA(), D3DXSaveTextureToFileA(), device_load_logo(), gl_error(), gl_problem(), gl_warning(), pdb_parse_cmd_string(), pdb_virtual_unwind(), test_try_transform(), and TWAIN_UserSelect().
◆ wine_dbgstr_an()
Definition at line 313 of file compat.c.
315 static const char hex[16] =
"0123456789abcdef";
322 if (!
str)
return "(null)";
334 unsigned char c = *
str++;
337 case '\n': *
dst++ =
'\\'; *
dst++ =
'n';
break;
338 case '\r': *
dst++ =
'\\'; *
dst++ =
'r';
break;
339 case '\t': *
dst++ =
'\\'; *
dst++ =
't';
break;
340 case '"': *
dst++ =
'\\'; *
dst++ =
'"';
break;
341 case '\\': *
dst++ =
'\\'; *
dst++ =
'\\';
break;
343 if (
c >=
' ' &&
c <= 126)
ACPI_SIZE strlen(const char *String)
static const char hex[16]
#define sprintf(buf, format,...)
Referenced by debugstr_a(), debugstr_an(), and wine_dbgstr_a().
◆ wine_dbgstr_guid()
Definition at line 197 of file debug.h.
199 if (!
id)
return "(null)";
201 return wine_dbg_sprintf(
"{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}",
202 id->Data1,
id->Data2,
id->Data3,
203 id->Data4[0],
id->Data4[1],
id->Data4[2],
id->Data4[3],
204 id->Data4[4],
id->Data4[5],
id->Data4[6],
id->Data4[7] );
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
Referenced by debugstr_guid().
◆ wine_dbgstr_longlong()
Definition at line 226 of file debug.h.
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
◆ wine_dbgstr_point()
Definition at line 207 of file debug.h.
209 if (!
pt)
return "(null)";
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
◆ wine_dbgstr_rect()
Definition at line 219 of file debug.h.
221 if (!
rect)
return "(null)";
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
◆ wine_dbgstr_size()
Definition at line 213 of file debug.h.
215 if (!
size)
return "(null)";
const char * wine_dbg_sprintf(const char *format,...) __WINE_PRINTF_ATTR(1
◆ wine_dbgstr_w()
Definition at line 192 of file debug.h.
const char * wine_dbgstr_wn(const WCHAR *s, int n)
◆ wine_dbgstr_wn()
Definition at line 367 of file compat.c.
375 if (!
str)
return "(null)";
396 case '\n': *
dst++ =
'\\'; *
dst++ =
'n';
break;
397 case '\r': *
dst++ =
'\\'; *
dst++ =
'r';
break;
398 case '\t': *
dst++ =
'\\'; *
dst++ =
't';
break;
399 case '"': *
dst++ =
'\\'; *
dst++ =
'"';
break;
400 case '\\': *
dst++ =
'\\'; *
dst++ =
'\\';
break;
402 if (
c >=
' ' &&
c <= 126)
#define sprintf(buf, format,...)
Referenced by debugstr_w(), debugstr_wn(), and wine_dbgstr_w().