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.

30 lines
839 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VPHYSICS_INTERNAL_H
  8. #define VPHYSICS_INTERNAL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tier0/memalloc.h"
  13. extern class IPhysics *g_PhysicsInternal;
  14. //-----------------------------------------------------------------------------
  15. // Memory debugging
  16. //-----------------------------------------------------------------------------
  17. #if defined(_DEBUG) || defined(USE_MEM_DEBUG)
  18. #define BEGIN_IVP_ALLOCATION() MemAlloc_PushAllocDbgInfo("IVP: " __FILE__ , __LINE__ )
  19. #define END_IVP_ALLOCATION() MemAlloc_PopAllocDbgInfo()
  20. #else
  21. #define BEGIN_IVP_ALLOCATION() 0
  22. #define END_IVP_ALLOCATION() 0
  23. #endif
  24. #endif // VPHYSICS_INTERNAL_H