From 8c0b68404644a55e646b9f8febb7e077b1e07855 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 14 Dec 2023 03:18:04 +0700 Subject: [PATCH] Enable assert mode --- regamedll/regamedll/precompiled.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/regamedll/regamedll/precompiled.h b/regamedll/regamedll/precompiled.h index 62d6dd3d..e4c3b1bb 100644 --- a/regamedll/regamedll/precompiled.h +++ b/regamedll/regamedll/precompiled.h @@ -45,6 +45,15 @@ // Valve libs stuff #include "tier0/platform.h" + +// Asserts are always compiled in pre-released or nightly builds +#if !defined(_RELEASEPROD) + #define DBGFLAG_ASSERT // Turns Assert on or off + #define DBGFLAG_ASSERTFATAL // Turns AssertFatal on or off + #define DBGFLAG_ASSERTDLG // Turns assert dialogs on or off and debug breaks on or off when not under the debugger + // (Dialogs will always be on when process is being debugged.) +#endif + #include "tier0/dbg.h" #include "dlls.h"