|
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...
|
| |
used for system or application debug.
| #define RBS_DEBUG_ELSIF |
( |
|
sta1, |
|
|
|
exp, |
|
|
|
sta2 |
|
) |
| sta1;} else if (exp) { sta2 |
| #define RBS_DEBUG_ENDIF |
( |
|
sta | ) |
sta;} |
| #define RBS_DEBUG_ERROR |
( |
|
exp, |
|
|
|
s, |
|
|
|
sta |
|
) |
| |
- Parameters
-
| [in] | exp | C language logical expression. |
| [in] | s | information string. |
| [in] | sta | C statement. |
- Note
- length of information string should not exceed
RBS_CFG_DEBUG_BUFSIZE
| #define RBS_DEBUG_ERROR_FORMAT |
( |
|
exp, |
|
|
|
format, |
|
|
|
sta, |
|
|
|
... |
|
) |
| |
- Parameters
-
| [in] | exp | C language logical expression. |
| [in] | format | format information string. |
| [in] | sta | C statement. |
| [in] | ... | parameters. |
- Note
- length of information string should not exceed
RBS_CFG_DEBUG_BUFSIZE
| #define RBS_DEBUG_IF |
( |
|
exp, |
|
|
|
sta |
|
) |
| if (exp) { sta |
| #define RBS_DEBUG_LOG |
( |
|
s | ) |
|
- Parameters
-
- Note
- length of information string should not exceed
RBS_CFG_DEBUG_BUFSIZE
| #define RBS_DEBUG_LOG_FORMAT |
( |
|
format, |
|
|
|
... |
|
) |
| |
- Parameters
-
| [in] | format | format information string. |
| [in] | ... | parameters. |
- Note
- length of information string should not exceed
RBS_CFG_DEBUG_BUFSIZE
| #define RBS_DEBUG_STA |
( |
|
sta | ) |
sta |
| #define RBS_DEBUG_WARN |
( |
|
exp, |
|
|
|
s |
|
) |
| |
- Parameters
-
| [in] | exp | C language logical expression. |
| [in] | s | information string. |
- Note
- length of information string should not exceed
RBS_CFG_DEBUG_BUFSIZE
| #define RBS_DEBUG_WARN_FORMAT |
( |
|
exp, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
- Parameters
-
| [in] | exp | C language logical expression. |
| [in] | format | format information string. |
| [in] | ... | parameters. |
- Note
- length of information string should not exceed
RBS_CFG_DEBUG_BUFSIZE