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 TCP/IP protocol driver 00004 * FILE: include/debug.h 00005 * PURPOSE: Debugging support macros 00006 * DEFINES: DBG - Enable debug output 00007 * NASSERT - Disable assertions 00008 */ 00009 00010 #pragma once 00011 00012 #define NORMAL_MASK 0x000000FF 00013 #define SPECIAL_MASK 0xFFFFFF00 00014 #define MIN_TRACE 0x00000001 00015 #define MID_TRACE 0x00000002 00016 #define MAX_TRACE 0x00000003 00017 00018 #define DEBUG_ADAPTER 0x00000100 00019 #define DEBUG_ULTRA 0xFFFFFFFF 00020 00021 #if DBG 00022 00023 extern unsigned long debug_trace_level; 00024 00025 #ifdef _MSC_VER 00026 00027 #define DH_DbgPrint(_t_, _x_) \ 00028 if (((debug_trace_level & NORMAL_MASK) >= _t_) || \ 00029 ((debug_trace_level & _t_) > NORMAL_MASK)) { \ 00030 DbgPrint("(%s:%d) ", __FILE__, __LINE__); \ 00031 DbgPrint _x_ ; \ 00032 } 00033 00034 #else /* _MSC_VER */ 00035 00036 #define DH_DbgPrint(_t_, _x_) \ 00037 if (((debug_trace_level & NORMAL_MASK) >= _t_) || \ 00038 ((debug_trace_level & _t_) > NORMAL_MASK)) { \ 00039 DbgPrint("(%s:%d)(%s) ", __FILE__, __LINE__, __FUNCTION__); \ 00040 DbgPrint _x_ ; \ 00041 } 00042 00043 #endif /* _MSC_VER */ 00044 00045 #else /* DBG */ 00046 00047 #define DH_DbgPrint(_t_, _x_) 00048 00049 #endif /* DBG */ 00050 00051 /* EOF */ Generated on Sun May 27 2012 04:17:45 for ReactOS by
1.7.6.1
|