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.

62 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. common.h
  5. Abstract:
  6. Definitions for use by all modules
  7. Notes:
  8. None
  9. History:
  10. 12/09/1999 robkenny Created
  11. 01/10/2000 linstev Format to new style
  12. --*/
  13. #ifndef _SHIMCOMMON_H_
  14. #define _SHIMCOMMON_H_
  15. void APPBreakPoint(void);
  16. #ifdef DBG
  17. // Debug environment variable, values = 0 -> 9
  18. #define szDebugEnvironmentVariable "SHIM_DEBUG_LEVEL"
  19. // Debug error levels
  20. typedef enum
  21. {
  22. eDbgLevelBase = 0,
  23. eDbgLevelError,
  24. eDbgLevelWarning,
  25. eDbgLevelUser,
  26. eDbgLevelInfo,
  27. eDbgLevelSpew = 9,
  28. } DEBUGLEVEL;
  29. VOID __cdecl DebugPrintf(DEBUGLEVEL dwDetail, LPSTR pszFmt, ...);
  30. VOID DebugAssert(
  31. LPSTR szFile,
  32. DWORD dwLine,
  33. BOOL bAssert,
  34. LPSTR szHelpString);
  35. #define DPF DebugPrintf
  36. #define DPFERROR(a) DPF(eDbgLevelError, a)
  37. #define ASSERT(a, b) DebugAssert(__FILE__, __LINE__, a, b)
  38. #else
  39. #pragma warning(disable : 4002)
  40. #define DPF()
  41. #define ASSERT()
  42. #endif
  43. #endif // _SHIMCOMMON_H_