home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / DIConfig / defines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.4 KB  |  65 lines

  1. //-----------------------------------------------------------------------------
  2. // File: defines.h
  3. //
  4. // Desc: Contains all defined symbols needed for the UI.
  5. //
  6. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8.  
  9. #ifndef __CFGUI_DEFINES_H__
  10. #define __CFGUI_DEFINES_H__
  11.  
  12.  
  13. // if either UNICODE define exists, make sure both do
  14. #ifdef UNICODE
  15. #ifndef _UNICODE
  16. #define _UNICODE
  17. #endif
  18. #endif
  19.  
  20. #ifdef _UNICODE
  21. #ifndef UNICODE
  22. #define UNICODE
  23. #endif
  24. #endif
  25.  
  26.  
  27.  
  28. // make sure we have the correct debug flags defined,
  29. // thus making sure assert actually works with build
  30. #if defined(DBG) || defined(DEBUG)
  31.     #ifdef NDEBUG
  32.         #undef NDEBUG
  33.     #endif
  34. #else
  35.     #ifndef NDEBUG
  36.         #define NDEBUG
  37.     #endif
  38. #endif
  39.  
  40. // disable tracing if we don't want debug info
  41. #ifdef NDEBUG
  42.     #ifndef NTRACE
  43.         #define NTRACE
  44.     #endif
  45.     #ifndef NO_LTRACE
  46.         #define NO_LTRACE
  47.     #endif
  48. #endif
  49.  
  50.  
  51. // settings...
  52. //#define CFGUI__FORCE_GOOD_ACFORS
  53. //#define CFGUI__FORCE_NON_NULL_WSZUSERNAMES
  54. //#define CFGUI__TRACE_ACTION_FORMATS
  55. //#define CFGUI__ALLOW_USER_ACTION_TREE_BRANCH_MANIPULATION
  56. #define CFGUI__UIGLOBALS_HAS_CURUSER
  57. #define CFGUI__COMPAREACTIONNAMES_CASE_INSENSITIVE
  58.  
  59. //#define __CFGUI_TRACE__TO_DEBUG_OUT
  60. #define __CFGUI_TRACE__TO_FILE
  61.  
  62.  
  63.  
  64. #endif //__CFGUI_DEFINES_H__
  65.