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 MIN_TRACE      ((1 << DPFLTR_WARNING_LEVEL))
00013 #define MID_TRACE      ((1 << DPFLTR_WARNING_LEVEL) | (1 << DPFLTR_TRACE_LEVEL))
00014 #define MAX_TRACE      ((1 << DPFLTR_WARNING_LEVEL) | (1 << DPFLTR_TRACE_LEVEL) | (1 << DPFLTR_INFO_LEVEL))
00015 
00016 #define DEBUG_CHECK    0x00000100
00017 #define DEBUG_MEMORY   0x00000200
00018 #define DEBUG_PBUFFER  0x00000400
00019 #define DEBUG_IRP      0x00000800
00020 #define DEBUG_TCPIF    0x00001000
00021 #define DEBUG_ADDRFILE 0x00002000
00022 #define DEBUG_DATALINK 0x00004000
00023 #define DEBUG_ARP      0x00008000
00024 #define DEBUG_IP       0x00010000
00025 #define DEBUG_UDP      0x00020000
00026 #define DEBUG_TCP      0x00040000
00027 #define DEBUG_ICMP     0x00080000
00028 #define DEBUG_ROUTER   0x00100000
00029 #define DEBUG_RCACHE   0x00200000
00030 #define DEBUG_NCACHE   0x00400000
00031 #define DEBUG_CPOINT   0x00800000
00032 #define DEBUG_LOCK     0x01000000
00033 #define DEBUG_INFO     0x02000000
00034 #define DEBUG_ULTRA    0x7FFFFFFF
00035 
00036 #if DBG
00037 
00038 #define REMOVE_PARENS(...) __VA_ARGS__
00039 #define TI_DbgPrint(_t_, _x_) \
00040     DbgPrintEx(DPFLTR_TCPIP_ID, (_t_) | DPFLTR_MASK, "(%s:%d) ", __FILE__, __LINE__), \
00041     DbgPrintEx(DPFLTR_TCPIP_ID, (_t_) | DPFLTR_MASK, REMOVE_PARENS _x_)
00042 
00043 #else /* DBG */
00044 
00045 #define TI_DbgPrint(_t_, _x_)
00046 
00047 #endif /* DBG */
00048 
00049 
00050 #define assert(x) ASSERT(x)
00051 #define assert_irql(x) ASSERT_IRQL(x)
00052 
00053 
00054 #ifdef _MSC_VER
00055 
00056 #define UNIMPLEMENTED \
00057     TI_DbgPrint(MIN_TRACE, ("The function at %s:%d is unimplemented, \
00058         but come back another day.\n", __FILE__, __LINE__));
00059 
00060 #else /* _MSC_VER */
00061 
00062 #define UNIMPLEMENTED \
00063     TI_DbgPrint(MIN_TRACE, ("(%s:%d)(%s) is unimplemented, \
00064         but come back another day.\n", __FILE__, __LINE__, __FUNCTION__));
00065 
00066 #endif /* _MSC_VER */
00067 
00068 
00069 #define CHECKPOINT \
00070     do { TI_DbgPrint(DEBUG_CHECK, ("(%s:%d)\n", __FILE__, __LINE__)); } while(0);
00071 
00072 #define CP CHECKPOINT
00073 
00074 #define ASSERT_KM_POINTER(_x) \
00075    ASSERT(((PVOID)_x) != (PVOID)0xcccccccc); \
00076    ASSERT(((PVOID)_x) >= (PVOID)0x80000000);
00077 
00078 /* 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.