don't require Windows.h for the ASSERT_OR_DIE macro

This commit is contained in:
myT 2023-12-18 00:13:15 +01:00
parent 19aad64607
commit f9103b4d52

View file

@ -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__); \