summaryrefslogtreecommitdiff
path: root/external/vpc/public/tier0/valve_on.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /external/vpc/public/tier0/valve_on.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'external/vpc/public/tier0/valve_on.h')
-rw-r--r--external/vpc/public/tier0/valve_on.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/external/vpc/public/tier0/valve_on.h b/external/vpc/public/tier0/valve_on.h
new file mode 100644
index 0000000..03ab0a7
--- /dev/null
+++ b/external/vpc/public/tier0/valve_on.h
@@ -0,0 +1,37 @@
+//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This turns on all Valve-specific #defines. Because we sometimes
+// call external include files from inside .cpp files, we need to
+// wrap those includes like this:
+// #include "tier0/valve_off.h"
+// #include <external.h>
+// #include "tier0/valve_on.h"
+//
+// $NoKeywords: $
+//=============================================================================//
+
+
+#ifdef STEAM
+//-----------------------------------------------------------------------------
+// Unicode-related #defines (see wchartypes.h)
+//-----------------------------------------------------------------------------
+#ifdef ENFORCE_WCHAR
+#define char DontUseChar_SeeWcharOn.h
+#endif
+
+
+//-----------------------------------------------------------------------------
+// Memory-related #defines
+//-----------------------------------------------------------------------------
+#define malloc( cub ) HEY_DONT_USE_MALLOC_USE_PVALLOC
+#define realloc( pvOld, cub ) HEY_DONT_USE_REALLOC_USE_PVREALLOC
+#define _expand( pvOld, cub ) HEY_DONT_USE_EXPAND_USE_PVEXPAND
+#define free( pv ) HEY_DONT_USE_FREE_USE_FREEPV
+
+#endif
+
+
+// Long is evil because it's treated differently by different compilers
+#ifdef DISALLOW_USE_OF_LONG
+ #define long long_is_the_devil_stop_using_it_use_int32_or_int64
+#endif