Go to the source code of this file.
|
#define | DBG(f) |
| This module contains macros for generate debugging messages Will be compiled an linked only when -DDEBUG CFLAG is used.
|
|
#define | DBG1(f, a) |
|
#define | DBG2(f, a, b) |
|
#define | DBG3(f, a, b, c) |
|
#define | DBG4(f, a, b, c, d) |
|
#define | DBG5(f, a, b, c, d, e) |
|
#define | ERR(f) |
|
#define | ERR1(f, a) |
|
#define | ERR2(f, a, b) |
|
#define | ERR3(f, a, b, c) |
|
#define | ERR4(f, a, b, c, d) |
|
#define | ERR5(f, a, b, c, d, e) |
|
#define | DEBUG_EXTERN extern |
|
◆ DBG
Value:
DEBUG_EXTERN void debug_print(int level, const char *file, int line, const char *format,...)
debug_print() prints the given message
This module contains macros for generate debugging messages Will be compiled an linked only when -DDEBUG CFLAG is used.
Definition at line 54 of file debug.h.
◆ DBG1
Value:
Definition at line 55 of file debug.h.
◆ DBG2
Value:
Definition at line 56 of file debug.h.
◆ DBG3
#define DBG3 |
( |
| f, |
|
|
| a, |
|
|
| b, |
|
|
| c ) |
Value:
Definition at line 57 of file debug.h.
◆ DBG4
#define DBG4 |
( |
| f, |
|
|
| a, |
|
|
| b, |
|
|
| c, |
|
|
| d ) |
Value:
Definition at line 58 of file debug.h.
◆ DBG5
#define DBG5 |
( |
| f, |
|
|
| a, |
|
|
| b, |
|
|
| c, |
|
|
| d, |
|
|
| e ) |
Value:debug_print(1, __FILE__, __LINE__, f , a , b , c , d , e )
Definition at line 59 of file debug.h.
◆ DEBUG_EXTERN
#define DEBUG_EXTERN extern |
◆ ERR
Value:
Definition at line 61 of file debug.h.
◆ ERR1
Value:
Definition at line 62 of file debug.h.
◆ ERR2
Value:
Definition at line 63 of file debug.h.
◆ ERR3
#define ERR3 |
( |
| f, |
|
|
| a, |
|
|
| b, |
|
|
| c ) |
Value:
Definition at line 64 of file debug.h.
◆ ERR4
#define ERR4 |
( |
| f, |
|
|
| a, |
|
|
| b, |
|
|
| c, |
|
|
| d ) |
Value:debug_print(-1, __FILE__, __LINE__, f , a , b , c , d )
Definition at line 65 of file debug.h.
◆ ERR5
#define ERR5 |
( |
| f, |
|
|
| a, |
|
|
| b, |
|
|
| c, |
|
|
| d, |
|
|
| e ) |
Value:debug_print(-1, __FILE__, __LINE__, f , a , b , c , d , e )
Definition at line 66 of file debug.h.
◆ debug_print()
DEBUG_EXTERN void debug_print |
( |
int | level, |
|
|
const char * | file, |
|
|
int | line, |
|
|
const char * | format, |
|
|
| ... ) |
debug_print() prints the given message
if the current debug-level is greater or equal to the defined level. The format string as well as all further arguments are interpreted as by the printf() function.
- Parameters
-
level | Debug level of message |
file | Name of the file where message is generated |
line | Line number where message is generated |
format | Message format |
.... | Optional arguments |
References DEBUG_EXTERN.
◆ get_debug_level()
◆ set_debug_level()