summaryrefslogtreecommitdiff
path: root/source/sourcemod/scripting/include/gamechaos/debug.inc
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
committeraura <nw@moneybot.cc>2026-02-17 23:42:09 +0100
commit5e2eb7d67ae933b7566f1944d0bb7744da03d586 (patch)
tree054acff1113270a9cd07933df760f3768c1b6853 /source/sourcemod/scripting/include/gamechaos/debug.inc
parent341db13a008dc12bb22ceb50452d93d01476308c (diff)
move source stuff to its own folder
Diffstat (limited to 'source/sourcemod/scripting/include/gamechaos/debug.inc')
-rw-r--r--source/sourcemod/scripting/include/gamechaos/debug.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/sourcemod/scripting/include/gamechaos/debug.inc b/source/sourcemod/scripting/include/gamechaos/debug.inc
new file mode 100644
index 0000000..4e5b7e7
--- /dev/null
+++ b/source/sourcemod/scripting/include/gamechaos/debug.inc
@@ -0,0 +1,19 @@
+
+// gamechaos's debug stocks
+// useful stocks for debugging
+
+#if defined _gamechaos_debug_included
+ #endinput
+#endif
+#define _gamechaos_debug_included
+
+#define GC_DEBUG_VERSION 0x1_00_00
+#define GC_DEBUG_VERSION_STRING "1.0.0"
+
+#if defined GC_DEBUG
+ #define GC_ASSERT(%1) if (!(%1))SetFailState("Assertion failed: \""...#%1..."\"")
+ #define GC_DEBUGPRINT(%1) PrintToChatAll(%1)
+#else
+ #define GC_ASSERT(%1)%2;
+ #define GC_DEBUGPRINT(%1)%2;
+#endif