Various debug utilities.
More...
|
#define | WARNING(string,...) printf( "WARNING : %s:%d [%s] : " string , __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); |
| Warning macro. More...
|
|
#define | ERROR(string,...) printf( "ERROR : %s:%d [%s] : " string , __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); |
| Error macro. More...
|
|
#define | MALP(string,...) printf( "<## MALP INFO ##> :" string , __VA_ARGS__); |
| Malp information macro. More...
|
|
#define | PERROR(string) |
| PERROR macro. More...
|
|
#define | DEBUG(string,...) printf( "DEBUG : %s:%d [%s] : " string , __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); |
| Debug macro. More...
|
|
Various debug utilities.
This module defines macros for debugging. each macros prints args (as printf) on standard output, adding file and line informations.
#define DEBUG |
( |
|
string, |
|
|
|
... |
|
) |
| printf( "DEBUG : %s:%d [%s] : " string , __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); |
Debug macro.
Prints :
DEBUG : file name:line [
function name] : message
Definition at line 80 of file Debug.h.
#define ERROR |
( |
|
string, |
|
|
|
... |
|
) |
| printf( "ERROR : %s:%d [%s] : " string , __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); |
Error macro.
Prints :
ERROR : filename:line [
function name] : message
Definition at line 49 of file Debug.h.
#define MALP |
( |
|
string, |
|
|
|
... |
|
) |
| printf( "<## MALP INFO ##> :" string , __VA_ARGS__); |
Malp information macro.
Prints :
<##
MALP INFO ##> : message
Definition at line 59 of file Debug.h.
Value:printf( "DEBUG : %s:%d [%s] : " , __FILE__, __LINE__, __FUNCTION__); \
perror( string );
PERROR macro.
Prints :
DEBUG : filename:line [
function name] : perror
string
Definition at line 69 of file Debug.h.
#define WARNING |
( |
|
string, |
|
|
|
... |
|
) |
| printf( "WARNING : %s:%d [%s] : " string , __FILE__, __LINE__, __FUNCTION__, __VA_ARGS__); |
Warning macro.
Prints :
WARNING : filename:line [
function name] : message
Definition at line 39 of file Debug.h.