ReactOS 0.4.15-dev-7961-gdcf9eb0
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; \
} \
}
#define L(x)
Definition: ntvdm.h:50
DWORD dwBufferLength
Definition: mmsystem.h:1015
DWORD dwFlags
Definition: mmsystem.h:1018
struct wavehdr_tag * lpNext
Definition: mmsystem.h:1020

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:816
#define MB_OK
Definition: winuser.h:790
__wchar_t WCHAR
Definition: xmlstorage.h:180

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

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.