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.

35 lines
860 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef ENV_DEBUGHISTORY_H
  7. #define ENV_DEBUGHISTORY_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. enum debughistorycategories_t
  12. {
  13. HISTORY_ENTITY_IO,
  14. HISTORY_AI_DECISIONS,
  15. HISTORY_SCENE_PRINT,
  16. HISTORY_ALYX_BLIND, // TEMP: until we find and fix this bug
  17. HISTORY_PLAYER_DAMAGE, // record all damage done to the player
  18. // Add new categories here
  19. MAX_HISTORY_CATEGORIES,
  20. };
  21. #define DISABLE_DEBUG_HISTORY
  22. #if defined(DISABLE_DEBUG_HISTORY)
  23. #define ADD_DEBUG_HISTORY( category, line ) ((void)0)
  24. #else
  25. #define ADD_DEBUG_HISTORY( category, line ) AddDebugHistoryLine( category, line )
  26. void AddDebugHistoryLine( int iCategory, const char *pszLine );
  27. #endif
  28. #endif // ENV_DEBUGHISTORY_H