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.

33 lines
1.1 KiB

  1. //===== Copyright 1996-2005, Valve Corporation, All rights reserved. ======//
  2. // This file is a force-include override
  3. #ifdef PLATFORM_OVERRIDE_MATERIALSYSTEM
  4. #define PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3 g_pMemAllocInternalPS3Override_MaterialSystem
  5. #endif
  6. #ifdef PLATFORM_OVERRIDE_TIER0
  7. #define PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3 g_pMemAllocInternalPS3Override_Tier0
  8. #endif
  9. #ifdef PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3
  10. class IMemAlloc;
  11. struct IMemAlloc_CachedInterface_t
  12. {
  13. IMemAlloc_CachedInterface_t();
  14. IMemAlloc *m_pMemAllocCached;
  15. };
  16. extern IMemAlloc_CachedInterface_t PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3;
  17. #define PLATFORM_INTERFACE_MEM_ALLOC_INTERNAL_PS3_OVERRIDE PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3.m_pMemAllocCached
  18. #define PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3_IMPL \
  19. IMemAlloc_CachedInterface_t PLATFORM_OVERRIDE_MEM_ALLOC_INTERNAL_PS3 CONSTRUCT_EARLY; \
  20. IMemAlloc_CachedInterface_t::IMemAlloc_CachedInterface_t() \
  21. { \
  22. m_pMemAllocCached = g_pMemAllocInternalPS3; \
  23. }
  24. #endif
  25. // Force-include delegation to platform.h
  26. #include "platform.h"