From f9103b4d529ff724dc4562f004ac80c856dd707d Mon Sep 17 00:00:00 2001 From: myT <> Date: Mon, 18 Dec 2023 00:13:15 +0100 Subject: [PATCH] don't require Windows.h for the ASSERT_OR_DIE macro --- code/qcommon/qcommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 63cb521..ffff7b2 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -1253,7 +1253,7 @@ void Sys_Crash( const char* message, const char* file, int line, const char* fun #define ASSERT_OR_DIE(Condition, Message) \ do { \ if (!(Condition)) { \ - if (IsDebuggerPresent()) \ + if (Sys_IsDebuggerAttached()) \ __debugbreak(); \ else \ Sys_Crash(Message, __FILE__, __LINE__, __FUNCTION__); \