Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygendebug.h
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS NDIS library 00004 * FILE: include/debug.h 00005 * PURPOSE: Debugging support macros 00006 * DEFINES: DBG - Enable debug output 00007 */ 00008 00009 #pragma once 00010 00011 #define NORMAL_MASK 0x000000FF 00012 #define SPECIAL_MASK 0xFFFFFF00 00013 #define MIN_TRACE 0x00000001 00014 #define MID_TRACE 0x00000002 00015 #define MAX_TRACE 0x00000003 00016 00017 #define DEBUG_MINIPORT 0x00000200 00018 #define DEBUG_PROTOCOL 0x00000400 00019 #define DEBUG_PACKET 0x00000800 00020 #define DEBUG_ULTRA 0xFFFFFFFF 00021 00022 #if DBG 00023 00024 extern ULONG DebugTraceLevel; 00025 00026 #ifdef _MSC_VER 00027 00028 #define NDIS_DbgPrint(_t_, _x_) \ 00029 if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \ 00030 ((DebugTraceLevel & _t_) > NORMAL_MASK)) { \ 00031 DbgPrint("(%s:%d) ", __FILE__, __LINE__); \ 00032 DbgPrint _x_ ; \ 00033 } 00034 00035 #else /* _MSC_VER */ 00036 00037 #define NDIS_DbgPrint(_t_, _x_) \ 00038 if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \ 00039 ((DebugTraceLevel & _t_) > NORMAL_MASK)) { \ 00040 DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \ 00041 DbgPrint _x_ ; \ 00042 } 00043 00044 #endif /* _MSC_VER */ 00045 00046 #define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x)) 00047 00048 #else /* DBG */ 00049 00050 #define NDIS_DbgPrint(_t_, _x_) 00051 00052 #define ASSERT_IRQL(x) 00053 /*#define ASSERT(x)*/ 00054 00055 #endif /* DBG */ 00056 00057 00058 #define assert(x) ASSERT(x) 00059 #define assert_irql(x) ASSERT_IRQL(x) 00060 00061 00062 #define UNIMPLEMENTED \ 00063 NDIS_DbgPrint(MIN_TRACE, ("Unimplemented.\n", __FUNCTION__)); 00064 00065 00066 #define CHECKPOINT \ 00067 do { NDIS_DbgPrint(MIN_TRACE, ("\n")); } while(0); 00068 00069 #define CP CHECKPOINT 00070 00071 /* EOF */ Generated on Sat May 26 2012 04:16:28 for ReactOS by
1.7.6.1
|