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.

75 lines
982 B

  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. NTSYSAPI
  19. VOID
  20. NTAPI
  21. RtlAssert(
  22. PVOID FailedAssertion,
  23. PVOID FileName,
  24. DWORD LineNumber,
  25. PCHAR Message
  26. );
  27. #define RTLASSERT( msg, exp)
  28. // RtlAssert( #exp, __FILE__, __LINE__, NULL )
  29. #define RTLASSERTMSG( msg, exp)
  30. // RtlAssert( #exp, __FILE__, __LINE__, msg )
  31. #ifdef ASSERT
  32. #undef ASSERT
  33. #endif // ASSERT
  34. #ifdef ASSERTMSG
  35. #undef ASSERTMSG
  36. #endif // ASSERTMSG
  37. #if DBG
  38. #define ASSERT( exp ) \
  39. if (!(exp)) { \
  40. RTLASSERT( msg, exp); \
  41. } \
  42. #define ASSERTMSG( msg, exp ) \
  43. if (!(exp)) { \
  44. RTLASSERT( msg, exp); \
  45. } \
  46. #else
  47. #define ASSERT( exp )
  48. #define ASSERTMSG( msg, exp )
  49. #endif // DBG
  50. #endif // _SECDBG_H_