mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[MMEBUDDY][MMIXER] Fix NDEBUG support (#7039)
- Remove unwanted value. - Use add_compile_definitions(). - NDEBUG "depends" on DBG.
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
MessageBox(0, dbg_popup_msg, dbg_popup_title, MB_OK | MB_TASKMODAL); \
|
MessageBox(0, dbg_popup_msg, dbg_popup_title, MB_OK | MB_TASKMODAL); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#if DBG && !defined(NDEBUG)
|
||||||
#define SND_ERR(...) \
|
#define SND_ERR(...) \
|
||||||
{ \
|
{ \
|
||||||
WCHAR dbg_popup_msg[1024]; \
|
WCHAR dbg_popup_msg[1024]; \
|
||||||
@@ -55,7 +55,6 @@
|
|||||||
CurrDumpHdr = CurrDumpHdr->lpNext; \
|
CurrDumpHdr = CurrDumpHdr->lpNext; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define SND_ERR(...) do {} while ( 0 )
|
#define SND_ERR(...) do {} while ( 0 )
|
||||||
#define SND_WARN(...) do {} while ( 0 )
|
#define SND_WARN(...) do {} while ( 0 )
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DUNICODE -D_UNICODE
|
-DUNICODE -D_UNICODE)
|
||||||
-DNDEBUG=1)
|
if(DBG)
|
||||||
|
add_compile_definitions(NDEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/sound)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/sound)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-DUNICODE -D_UNICODE
|
-DUNICODE -D_UNICODE)
|
||||||
-DNDEBUG=1)
|
if(DBG)
|
||||||
|
add_compile_definitions(NDEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/sound)
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/sound)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user