From f7d5432584b11f875d63972b7a4d2d8817d7d672 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 26 Jan 2012 16:29:59 -0500 Subject: [PATCH] Fix release mode compile error --- Sources/Plasma/CoreLib/HeadSpin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/Plasma/CoreLib/HeadSpin.cpp b/Sources/Plasma/CoreLib/HeadSpin.cpp index 4d17fb31..c9a50e54 100644 --- a/Sources/Plasma/CoreLib/HeadSpin.cpp +++ b/Sources/Plasma/CoreLib/HeadSpin.cpp @@ -117,15 +117,13 @@ void ErrorAssert(int line, const char file[], const char fmt[], ...) va_list args; va_start(args, fmt); vsnprintf(msg, sizeof(msg), fmt, args); -#ifdef _MSC_VER -#ifndef PLASMA_EXTERNAL_RELEASE +#ifdef HS_DEBUGGING if (s_GuiAsserts) { if(_CrtDbgReport(_CRT_ASSERT, file, line, NULL, msg)) DebugBreak(); } else -#endif // PLASMA_EXTERNAL_RELEASE -#endif // _MSC_VER +#endif // HS_DEBUGGING if (DebugIsDebuggerPresent()) { char str[] = "-------\nASSERTION FAILED:\nFile: %s Line: %i\nMessage: %s\n-------"; DebugMsg(str, file, line, msg);