windows-nt/Source/XPSP1/NT/base/fs/rdr2/inc/rxassert.h
2020-09-26 16:20:57 +08:00

70 lines
1.1 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
RxAssert.h
Abstract:
This module declares the prototypes and global data used by the special RDBSS assert facilties.
Author:
Joe Linn [JoeLinn] 21-oct-1996
Revision History:
Notes:
--*/
#ifndef _RDBSSASSERT_INCLUDED_
#define _RDBSSASSERT_INCLUDED_
VOID RxDbgBreakPoint(ULONG LineNumber);
//only do this is my routine is the one of interest.......
#ifdef RDBSS_ASSERTS
#if 0
#if !DBG
//here, ntifs will have already defined the asserts away..........
// so, we just put them back.....this code is duplicated from ntifs.h
#undef ASSERT
#define ASSERT( exp ) \
if (!(exp)) \
RxDbgBreakPoint(__LINE__)
#undef ASSERTMSG
#define ASSERTMSG( msg, exp ) \
if (!(exp)) \
RxDbgBreakPoint(__LINE__)
#endif //!DBG
#endif
//this will make asserts go to our routine
#define RtlAssert RxAssert
VOID
RxAssert(
IN PVOID FailedAssertion,
IN PVOID FileName,
IN ULONG LineNumber,
IN PCHAR Message OPTIONAL
);
#endif //ifdef RDBSS_ASSERTS
#endif // _RDBSSASSERT_INCLUDED_