Add IsDebuggerPresent

This commit is contained in:
Krzosa Karol
2026-01-05 12:03:25 +01:00
parent 96d9847639
commit c0d00a6211
4 changed files with 13 additions and 4 deletions

View File

@@ -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