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.

86 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name:
  4. secdbg.h
  5. Abstract:
  6. Debug macro definition file.
  7. Author:
  8. Madan Appiah (madana) 24-Jan-1998
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _SECDBG_H_
  14. #define _SECDBG_H_
  15. //
  16. // assert macros.
  17. //
  18. #ifndef OS_WIN16
  19. NTSYSAPI
  20. VOID
  21. NTAPI
  22. RtlAssert(
  23. PVOID FailedAssertion,
  24. PVOID FileName,
  25. DWORD LineNumber,
  26. PCHAR Message
  27. );
  28. #define RTLASSERT( msg, exp)
  29. // RtlAssert( #exp, __FILE__, __LINE__, NULL )
  30. #define RTLASSERTMSG( msg, exp)
  31. // RtlAssert( #exp, __FILE__, __LINE__, msg )
  32. #else // OS_WIN16
  33. #define RTLASSERT( msg, exp)
  34. #define RTLASSERTMSG( msg, exp)
  35. #endif // OS_WIN16
  36. #if DBG
  37. #undef ASSERT
  38. #undef ASSERTMSG
  39. #define ASSERT( exp ) \
  40. if (!(exp)) { \
  41. RTLASSERT( msg, exp); \
  42. } \
  43. #define ASSERTMSG( msg, exp ) \
  44. if (!(exp)) { \
  45. RTLASSERT( msg, exp); \
  46. } \
  47. #else
  48. #ifndef ASSERT
  49. #define ASSERT( exp )
  50. #endif
  51. #ifndef ASSERTMSG
  52. #define ASSERTMSG( msg, exp )
  53. #endif
  54. #endif // DBG
  55. #endif // _SECDBG_H_