RainbowBS Manual: debug

RainbowBS

RainbowBS Manual  v0.1.0
Written by QWQ([email protected])
debug

statement macros

statement macros for debug

#define RBS_DEBUG_STA(sta)   sta
 C statement sta is compiled if enable debug. More...
 
#define RBS_DEBUG_IF(exp, sta)   if (exp) { sta
 C statement if is compiled if enable debug. More...
 
#define RBS_DEBUG_ELSIF(sta1, exp, sta2)   sta1;} else if (exp) { sta2
 C statement else if is compiled if enable debug. More...
 
#define RBS_DEBUG_ENDIF(sta)   sta;}
 C statement } for if is compiled if enable debug. More...
 

error macro function

error macros for debug output

#define RBS_DEBUG_ERROR(exp, s, sta)
 Output error information. More...
 
#define RBS_DEBUG_ERROR_FORMAT(exp, format, sta, ...)
 Output format error information conditionally. More...
 

warning macro function

warning macros for debug output

#define RBS_DEBUG_WARN(exp, s)
 Output warning information conditionally. More...
 
#define RBS_DEBUG_WARN_FORMAT(exp, format, ...)
 Output format warning information conditionally. More...
 

log macro function

log macros for debug output

#define RBS_DEBUG_LOG(s)
 Output format log information. More...
 
#define RBS_DEBUG_LOG_FORMAT(format, ...)
 Output format log information. More...
 

Detailed Description

used for system or application debug.

Macro Definition Documentation

#define RBS_DEBUG_ELSIF (   sta1,
  exp,
  sta2 
)    sta1;} else if (exp) { sta2

This macro equals to sta1;} else if (exp) { sta2

Parameters
sta1C statement.
expC expression.
sta2C statement.
Note
this should used with RBS_DEBUG_IF() and RBS_DEBUG_ENDIF().
See also
RBS_DEBUG_IF()
RBS_DEBUG_ENDIF()
#define RBS_DEBUG_ENDIF (   sta)    sta;}

This macro equals to sta1;}

Parameters
staC statement.
Note
this should used with RBS_DEBUG_IF() and RBS_DEBUG_ELSIF().
See also
RBS_DEBUG_IF()
RBS_DEBUG_ELSIF()
#define RBS_DEBUG_ERROR (   exp,
  s,
  sta 
)
Parameters
[in]expC language logical expression.
[in]sinformation string.
[in]staC statement.
Note
length of information string should not exceed RBS_CFG_DEBUG_BUFSIZE
#define RBS_DEBUG_ERROR_FORMAT (   exp,
  format,
  sta,
  ... 
)
Parameters
[in]expC language logical expression.
[in]formatformat information string.
[in]staC statement.
[in]...parameters.
Note
length of information string should not exceed RBS_CFG_DEBUG_BUFSIZE
#define RBS_DEBUG_IF (   exp,
  sta 
)    if (exp) { sta

This macro equals to if (exp) { sta

Parameters
expC expression.
staC statement.
Note
this should used with RBS_DEBUG_ELSIF() and RBS_DEBUG_ENDIF().
See also
RBS_DEBUG_ELSIF()
RBS_DEBUG_ENDIF()
#define RBS_DEBUG_LOG (   s)
Parameters
[in]sinformation string.
Note
length of information string should not exceed RBS_CFG_DEBUG_BUFSIZE
#define RBS_DEBUG_LOG_FORMAT (   format,
  ... 
)
Parameters
[in]formatformat information string.
[in]...parameters.
Note
length of information string should not exceed RBS_CFG_DEBUG_BUFSIZE
#define RBS_DEBUG_STA (   sta)    sta
Parameters
staC statement
#define RBS_DEBUG_WARN (   exp,
 
)
Parameters
[in]expC language logical expression.
[in]sinformation string.
Note
length of information string should not exceed RBS_CFG_DEBUG_BUFSIZE
#define RBS_DEBUG_WARN_FORMAT (   exp,
  format,
  ... 
)
Parameters
[in]expC language logical expression.
[in]formatformat information string.
[in]...parameters.
Note
length of information string should not exceed RBS_CFG_DEBUG_BUFSIZE
Generated by   doxygen 1.8.9.1