Team Fortress 2 Source Code as on 22/4/2020
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.

31 lines
1.1 KiB

  1. //========= Copyright 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