mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
switch to internal debug mode detection macro for the element size check in radsort
This commit is contained in:
@@ -69,8 +69,8 @@ if "%pgo%"=="1" (
|
|||||||
|
|
||||||
:: --- Compile/Link Line Definitions ------------------------------------------
|
:: --- Compile/Link Line Definitions ------------------------------------------
|
||||||
set cl_common= /I..\src\ /I..\local\ /nologo /FC /Z7 /Zc:preprocessor
|
set cl_common= /I..\src\ /I..\local\ /nologo /FC /Z7 /Zc:preprocessor
|
||||||
set cl_debug= call cl /Od /Ob1 /DBUILD_DEBUG=1 /D_DEBUG %cl_common% %auto_compile_flags%
|
set cl_debug= call cl /Od /Ob1 /DBUILD_DEBUG=1 %cl_common% %auto_compile_flags%
|
||||||
set cl_release= call cl /O2 /DBUILD_DEBUG=0 /DNDEBUG %cl_common% %auto_compile_flags%
|
set cl_release= call cl /O2 /DBUILD_DEBUG=0 %cl_common% %auto_compile_flags%
|
||||||
set cl_link= /link /MANIFEST:EMBED /INCREMENTAL:NO /pdbaltpath:%%%%_PDB%%%% /NATVIS:"%~dp0\src\natvis\base.natvis" /noexp /nocoffgrpinfo /opt:ref /opt:icf
|
set cl_link= /link /MANIFEST:EMBED /INCREMENTAL:NO /pdbaltpath:%%%%_PDB%%%% /NATVIS:"%~dp0\src\natvis\base.natvis" /noexp /nocoffgrpinfo /opt:ref /opt:icf
|
||||||
set cl_out= /out:
|
set cl_out= /out:
|
||||||
set cl_linker=
|
set cl_linker=
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
** stepping, breakpoints, evaluation, cross-module calls.
|
** stepping, breakpoints, evaluation, cross-module calls.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if COMPILER_MSVC && _DEBUG
|
||||||
|
#pragma comment(linker, "/nodefaultlib:libcmt")
|
||||||
|
#pragma comment(lib, "libcmtd")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|||||||
Vendored
+1
-1
@@ -438,7 +438,7 @@ RSFORCEINLINE void radsortinternal( void * start, size_t len, size_t element_siz
|
|||||||
if ( len <= 1 )
|
if ( len <= 1 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if _DEBUG
|
#if BUILD_DEBUG
|
||||||
if ( element_size > sizeof( RS_MAX_SIMPLE_BUF ) )
|
if ( element_size > sizeof( RS_MAX_SIMPLE_BUF ) )
|
||||||
__debugbreak();
|
__debugbreak();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user