switch to internal debug mode detection macro for the element size check in radsort

This commit is contained in:
Nikita Smith
2026-03-04 11:28:53 -08:00
parent 57cbd020a1
commit e9a2f36b23
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ if "%pgo%"=="1" (
:: --- Compile/Link Line Definitions ------------------------------------------
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_release= call cl /O2 /DBUILD_DEBUG=0 /DNDEBUG %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 %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_out= /out:
set cl_linker=
+5
View File
@@ -6,6 +6,11 @@
** stepping, breakpoints, evaluation, cross-module calls.
*/
#if COMPILER_MSVC && _DEBUG
#pragma comment(linker, "/nodefaultlib:libcmt")
#pragma comment(lib, "libcmtd")
#endif
#include <string>
#include <vector>
#include <unordered_map>
+1 -1
View File
@@ -438,7 +438,7 @@ RSFORCEINLINE void radsortinternal( void * start, size_t len, size_t element_siz
if ( len <= 1 )
return;
#if _DEBUG
#if BUILD_DEBUG
if ( element_size > sizeof( RS_MAX_SIMPLE_BUF ) )
__debugbreak();
#endif