Add IsDebuggerPresent
This commit is contained in:
@@ -77,7 +77,14 @@
|
||||
#endif
|
||||
|
||||
#if OS_WINDOWS
|
||||
#define BREAK() __debugbreak()
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#define BREAK() if (IsDebuggerPresent()) {__debugbreak();}
|
||||
#elif OS_LINUX
|
||||
#define BREAK() raise(SIGTRAP)
|
||||
#elif OS_WASM
|
||||
|
||||
Reference in New Issue
Block a user