mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-09-23 17:50:05 +00:00
switch to internal debug mode detection macro for the element size check in radsort
This commit is contained in:
@@ -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>
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user