Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: This turns on all Valve-specific #defines. Because we sometimes
  4. // call external include files from inside .cpp files, we need to
  5. // wrap those includes like this:
  6. // #include "tier0/valve_off.h"
  7. // #include <external.h>
  8. // #include "tier0/valve_on.h"
  9. //
  10. // $NoKeywords: $
  11. //=============================================================================//
  12. #ifdef STEAM
  13. //-----------------------------------------------------------------------------
  14. // Unicode-related #defines (see wchartypes.h)
  15. //-----------------------------------------------------------------------------
  16. #ifdef ENFORCE_WCHAR
  17. #define char DontUseChar_SeeWcharOn.h
  18. #endif
  19. //-----------------------------------------------------------------------------
  20. // Memory-related #defines
  21. //-----------------------------------------------------------------------------
  22. #define malloc( cub ) HEY_DONT_USE_MALLOC_USE_PVALLOC
  23. #define realloc( pvOld, cub ) HEY_DONT_USE_REALLOC_USE_PVREALLOC
  24. #define _expand( pvOld, cub ) HEY_DONT_USE_EXPAND_USE_PVEXPAND
  25. #define free( pv ) HEY_DONT_USE_FREE_USE_FREEPV
  26. #endif
  27. // Long is evil because it's treated differently by different compilers
  28. #ifdef DISALLOW_USE_OF_LONG
  29. #define long long_is_the_devil_stop_using_it_use_int32_or_int64
  30. #endif