Leaked source code of windows server 2003
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
889 B

  1. //--------------------------------------------------------------------------------------------
  2. //
  3. // Copyright (c) Microsoft Corporation, 1996
  4. //
  5. // Description:
  6. //
  7. // Microsoft Normandy client debug defines
  8. //
  9. // History:
  10. // davidsan 05/01/96 Created
  11. //
  12. //--------------------------------------------------------------------------------------------
  13. #ifndef _CLDBG_H
  14. #define _CLDBG_H
  15. #ifdef DEBUG
  16. #define ASSERT_GLE 0x00000001
  17. extern void AssertProc(LPCSTR szMsg, LPCSTR szFile, UINT iLine, DWORD grf);
  18. #define Assert(f) (void)((f) || (AssertProc(#f, __FILE__, __LINE__, 0), 0))
  19. #define AssertGLE(f) (void)((f) || (AssertProc(#f, __FILE__, __LINE__, ASSERT_GLE), 0))
  20. #define AssertSz(f,sz) (void)((f) || (AssertProc(sz, __FILE__, __LINE__, 0), 0))
  21. #else
  22. #define Assert(f)
  23. #define AssertGLE(f)
  24. #define AssertSz(f,sz)
  25. #endif
  26. #endif // _CLDBG_H