ReactOS  0.4.14-dev-293-g2b39b42
mmebuddy_debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define POPUP(...)
 
#define SND_ERR(...)
 
#define SND_WARN(...)
 
#define SND_TRACE(...)
 
#define SND_ASSERT(condition)
 
#define DUMP_WAVEHDR_QUEUE(sound_device_instance)
 

Macro Definition Documentation

◆ DUMP_WAVEHDR_QUEUE

#define DUMP_WAVEHDR_QUEUE (   sound_device_instance)
Value:
{ \
PWAVEHDR CurrDumpHdr = sound_device_instance->HeadWaveHeader; \
SND_TRACE(L"-- Current wave header list --\n"); \
while ( CurrDumpHdr ) \
{ \
SND_TRACE(L"%x | %d bytes | flags: %x\n", CurrDumpHdr, \
CurrDumpHdr->dwBufferLength, \
CurrDumpHdr->dwFlags); \
CurrDumpHdr = CurrDumpHdr->lpNext; \
} \
}
static const WCHAR L[]
Definition: oid.c:1250

Definition at line 46 of file mmebuddy_debug.h.

◆ POPUP

#define POPUP (   ...)
Value:
{ \
WCHAR dbg_popup_msg[1024], dbg_popup_title[256]; \
wsprintf(dbg_popup_title, L"%hS(%d)", __FILE__, __LINE__); \
wsprintf(dbg_popup_msg, __VA_ARGS__); \
MessageBox(0, dbg_popup_msg, dbg_popup_title, MB_OK | MB_TASKMODAL); \
}
#define MB_TASKMODAL
Definition: winuser.h:810
static const WCHAR L[]
Definition: oid.c:1250
#define MB_OK
Definition: winuser.h:784

Definition at line 8 of file mmebuddy_debug.h.

◆ SND_ASSERT

#define SND_ASSERT (   condition)
Value:
{ \
if ( ! ( condition ) ) \
{ \
SND_ERR(L"ASSERT FAILED: %hS File %hS Line %u\n", #condition, __FILE__, __LINE__); \
POPUP(L"ASSERT FAILED: %hS\n", #condition); \
ExitProcess(1); \
} \
}
GLenum condition
Definition: glext.h:9255
static const WCHAR L[]
Definition: oid.c:1250

Definition at line 36 of file mmebuddy_debug.h.

◆ SND_ERR

#define SND_ERR (   ...)
Value:
{ \
WCHAR dbg_popup_msg[1024]; \
wsprintf(dbg_popup_msg, __VA_ARGS__); \
OutputDebugString(dbg_popup_msg); \
}

Definition at line 17 of file mmebuddy_debug.h.

◆ SND_TRACE

#define SND_TRACE (   ...)
Value:
{ \
WCHAR dbg_popup_msg[1024]; \
wsprintf(dbg_popup_msg, __VA_ARGS__); \
OutputDebugString(dbg_popup_msg); \
}

Definition at line 29 of file mmebuddy_debug.h.

◆ SND_WARN

#define SND_WARN (   ...)
Value:
{ \
WCHAR dbg_popup_msg[1024]; \
wsprintf(dbg_popup_msg, __VA_ARGS__); \
OutputDebugString(dbg_popup_msg); \
}

Definition at line 23 of file mmebuddy_debug.h.