BVB Source Codes

CRYENGINE Show MannequinDebug.h Source code

Return Download CRYENGINE: download MannequinDebug.h Source code - Download CRYENGINE Source code - Type:.h
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. #ifndef __MANNEQUIN_DEBUG__H__
  4. #define __MANNEQUIN_DEBUG__H__
  5.  
  6. #ifndef _RELEASE
  7.         #define MANNEQUIN_DEBUGGING_ENABLED (1)
  8. #else
  9.         #define MANNEQUIN_DEBUGGING_ENABLED (0)
  10. #endif
  11.  
  12. class CActionController;
  13.  
  14. namespace mannequin
  15. {
  16. namespace debug
  17. {
  18. void RegisterCommands();
  19.  
  20. #if MANNEQUIN_DEBUGGING_ENABLED
  21. void        Log(const IActionController& actionControllerI, const char* format, ...);
  22. void        DrawDebug();
  23. inline void WebDebugState(const CActionController& actionController)                 {}
  24. #else
  25. inline void Log(const IActionController& actionControllerI, const char* format, ...) {}
  26. inline void DrawDebug()                                                              {}
  27. inline void WebDebugState(const CActionController& actionController)                 {}
  28. #endif
  29.  
  30. }
  31. }
  32.  
  33. //--- Macro ensures that complex expressions within a log are still removed from the build completely
  34. #if MANNEQUIN_DEBUGGING_ENABLED
  35.         #define MannLog(ac, format, ...) mannequin::debug::Log(ac, format, __VA_ARGS__)
  36. #else //MANNEQUIN_DEBUGGING_ENABLED
  37.         #define MannLog(...)
  38. #endif //MANNEQUIN_DEBUGGING_ENABLED
  39.  
  40. #endif
  41.  
downloadMannequinDebug.h Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top