mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 06:39:43 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
73
drivers/network/ndis/include/debug.h
Normal file
73
drivers/network/ndis/include/debug.h
Normal file
|
@ -0,0 +1,73 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS NDIS library
|
||||
* FILE: include/debug.h
|
||||
* PURPOSE: Debugging support macros
|
||||
* DEFINES: DBG - Enable debug output
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define NORMAL_MASK 0x000000FF
|
||||
#define SPECIAL_MASK 0xFFFFFF00
|
||||
#define MIN_TRACE 0x00000001
|
||||
#define MID_TRACE 0x00000002
|
||||
#define MAX_TRACE 0x00000003
|
||||
|
||||
#define DEBUG_MINIPORT 0x00000200
|
||||
#define DEBUG_PROTOCOL 0x00000400
|
||||
#define DEBUG_PACKET 0x00000800
|
||||
#define DEBUG_ULTRA 0xFFFFFFFF
|
||||
|
||||
#if DBG
|
||||
|
||||
extern ULONG DebugTraceLevel;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#define NDIS_DbgPrint(_t_, _x_) \
|
||||
if ((_t_ > NORMAL_MASK) \
|
||||
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||
DbgPrint("(%s:%d) ", __FILE__, __LINE__); \
|
||||
DbgPrint _x_ ; \
|
||||
}
|
||||
|
||||
#else /* _MSC_VER */
|
||||
|
||||
#define NDIS_DbgPrint(_t_, _x_) \
|
||||
if ((_t_ > NORMAL_MASK) \
|
||||
? (DebugTraceLevel & _t_) > NORMAL_MASK \
|
||||
: (DebugTraceLevel & NORMAL_MASK) >= _t_) { \
|
||||
DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \
|
||||
DbgPrint _x_ ; \
|
||||
}
|
||||
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
||||
|
||||
#else /* DBG */
|
||||
|
||||
#define NDIS_DbgPrint(_t_, _x_)
|
||||
|
||||
#define ASSERT_IRQL(x)
|
||||
/*#define ASSERT(x)*/
|
||||
|
||||
#endif /* DBG */
|
||||
|
||||
|
||||
#define assert(x) ASSERT(x)
|
||||
#define assert_irql(x) ASSERT_IRQL(x)
|
||||
|
||||
|
||||
#define UNIMPLEMENTED \
|
||||
NDIS_DbgPrint(MIN_TRACE, ("Unimplemented.\n", __FUNCTION__));
|
||||
|
||||
|
||||
#define CHECKPOINT \
|
||||
do { NDIS_DbgPrint(MIN_TRACE, ("\n")); } while(0);
|
||||
|
||||
#define CP CHECKPOINT
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue