mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[FASTFAT_NEW] Fix build with FASTFATDBG set
This commit is contained in:
parent
0daa5547d9
commit
3013e153b0
1 changed files with 15 additions and 1 deletions
|
@ -234,6 +234,7 @@ extern LONG FatDebugTraceIndent;
|
|||
} \
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define DebugDump(STR,LEVEL,PTR) { \
|
||||
__pragma(warning(push)) \
|
||||
__pragma(warning(disable:4210)) \
|
||||
|
@ -248,9 +249,22 @@ extern LONG FatDebugTraceIndent;
|
|||
} \
|
||||
__pragma(warning(pop)) \
|
||||
}
|
||||
#else
|
||||
#define DebugDump(STR,LEVEL,PTR) { \
|
||||
ULONG _i; \
|
||||
VOID FatDump(IN PVOID Ptr); \
|
||||
if (((LEVEL) == 0) || (FatDebugTraceLevel & (LEVEL))) { \
|
||||
_i = (ULONG)PsGetCurrentThread(); \
|
||||
DbgPrint("%08lx:",_i); \
|
||||
DbgPrint(STR); \
|
||||
if (PTR != NULL) {FatDump(PTR);} \
|
||||
NT_ASSERT(FALSE); \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
#define DebugUnwind(X) { \
|
||||
if (AbnormalTermination()) { \
|
||||
if (_SEH2_AbnormalTermination()) { \
|
||||
DebugTrace(0, DEBUG_TRACE_UNWIND, #X ", Abnormal termination.\n", 0); \
|
||||
} \
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue