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.

69 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. RxAssert.h
  5. Abstract:
  6. This module declares the prototypes and global data used by the special RDBSS assert facilties.
  7. Author:
  8. Joe Linn [JoeLinn] 21-oct-1996
  9. Revision History:
  10. Notes:
  11. --*/
  12. #ifndef _RDBSSASSERT_INCLUDED_
  13. #define _RDBSSASSERT_INCLUDED_
  14. VOID RxDbgBreakPoint(ULONG LineNumber);
  15. //only do this is my routine is the one of interest.......
  16. #ifdef RDBSS_ASSERTS
  17. #if 0
  18. #if !DBG
  19. //here, ntifs will have already defined the asserts away..........
  20. // so, we just put them back.....this code is duplicated from ntifs.h
  21. #undef ASSERT
  22. #define ASSERT( exp ) \
  23. if (!(exp)) \
  24. RxDbgBreakPoint(__LINE__)
  25. #undef ASSERTMSG
  26. #define ASSERTMSG( msg, exp ) \
  27. if (!(exp)) \
  28. RxDbgBreakPoint(__LINE__)
  29. #endif //!DBG
  30. #endif
  31. //this will make asserts go to our routine
  32. #define RtlAssert RxAssert
  33. VOID
  34. RxAssert(
  35. IN PVOID FailedAssertion,
  36. IN PVOID FileName,
  37. IN ULONG LineNumber,
  38. IN PCHAR Message OPTIONAL
  39. );
  40. #endif //ifdef RDBSS_ASSERTS
  41. #endif // _RDBSSASSERT_INCLUDED_
  42.