summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/include/gamechaos/debug.inc
blob: 4e5b7e77be7a19d47d9bf6b182c0fe8ad7c09bf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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