ReactOS 0.4.16-dev-297-gc569aee
debug.h File Reference
#include "lwip/arch.h"
#include "lwip/opt.h"
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LWIP_DBG_MASK_LEVEL   0x03
 
#define LWIP_DBG_LEVEL_OFF   LWIP_DBG_LEVEL_ALL
 
#define LWIP_ASSERT(message, assertion)
 
#define LWIP_PLATFORM_ERROR(message)
 
#define LWIP_ERROR(message, expression, handler)
 
#define LWIP_DEBUG_ENABLED(debug)   0
 
#define LWIP_DEBUGF(debug, message)
 
Debug level (LWIP_DBG_MIN_LEVEL)
#define LWIP_DBG_LEVEL_ALL   0x00
 
#define LWIP_DBG_LEVEL_WARNING   0x01
 
#define LWIP_DBG_LEVEL_SERIOUS   0x02
 
#define LWIP_DBG_LEVEL_SEVERE   0x03
 
Enable/disable debug messages completely (LWIP_DBG_TYPES_ON)
#define LWIP_DBG_ON   0x80U
 
#define LWIP_DBG_OFF   0x00U
 
Debug message types (LWIP_DBG_TYPES_ON)
#define LWIP_DBG_TRACE   0x40U
 
#define LWIP_DBG_STATE   0x20U
 
#define LWIP_DBG_FRESH   0x10U
 
#define LWIP_DBG_HALT   0x08U
 

Detailed Description

Debug messages infrastructure

Definition in file debug.h.

Macro Definition Documentation

◆ LWIP_ASSERT

#define LWIP_ASSERT (   message,
  assertion 
)
Value:
do { if (!(assertion)) { \
LWIP_PLATFORM_ASSERT(message); }} while(0)
Definition: tftpd.h:60

Definition at line 116 of file debug.h.

◆ LWIP_DEBUG_ENABLED

#define LWIP_DEBUG_ENABLED (   debug)    0

Enable debug message printing, but only if debug message type is enabled AND is of correct type AND is at least LWIP_DBG_LEVEL.

Definition at line 157 of file debug.h.

◆ LWIP_DEBUGF

#define LWIP_DEBUGF (   debug,
  message 
)

Definition at line 158 of file debug.h.

◆ LWIP_ERROR

#define LWIP_ERROR (   message,
  expression,
  handler 
)
Value:
do { if (!(expression)) { \
LWIP_PLATFORM_ERROR(message); handler;}} while(0)
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7512

Definition at line 130 of file debug.h.

◆ LWIP_PLATFORM_ERROR

#define LWIP_PLATFORM_ERROR (   message)

Definition at line 126 of file debug.h.