ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

debug.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.