Source code of Windows XP (NT5)
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.

55 lines
1.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. UITrace.hxx
  7. UI environment independent trace/debug output definitions
  8. See also "UIAssert.HXX" and "Dbgstr.HXX."
  9. Usage:
  10. UITRACE( string ) - If TRACE is defined, Output the string to:
  11. Debug terminal if under windows
  12. stderr if not windows
  13. UIDEBUG( string ) - Same as UITRACE, only UIDEBUG is sensitive
  14. to the manifest DEBUG
  15. FILE HISTORY:
  16. Johnl 2-Jan-1990 Created
  17. beng 30-Apr-1991 Made C-includable
  18. jonn 12-Sep-1991 Removed _far
  19. beng 23-Sep-1991 Safe around "if" statements
  20. beng 25-Sep-1991 Withdrew bogus UIDEBUGNLS (never built)
  21. beng 16-Oct-1991 Helper fcns are C++. (C clients should use
  22. the standard runtime, anyway.)
  23. beng 10-May-1992 Uses dbgstr package
  24. */
  25. #ifndef _UITRACE_HXX_
  26. #define _UITRACE_HXX_
  27. #include "dbgstr.hxx"
  28. #if defined(DEBUG)
  29. # define UIDEBUG(exp) { cdebug << (exp) ; }
  30. # define UIDEBUGNUM(exp) { cdebug << (exp) ; }
  31. #else
  32. # define UIDEBUG(exp) { ; }
  33. # define UIDEBUGNUM(exp) { ; }
  34. #endif
  35. #if defined(TRACE) && defined(DEBUG)
  36. # define UITRACE(exp) { cdebug << (exp) ; }
  37. # define UITRACENUM(exp) { cdebug << (exp) ; }
  38. #else
  39. # define UITRACE(exp) { ; }
  40. # define UITRACENUM(exp) { ; }
  41. #endif
  42. #endif // _UITRACE_HXX_