Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Debug

Various debug utilities. More...

Macros

#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...
 

Detailed Description

Various debug utilities.

This module defines macros for debugging. each macros prints args (as printf) on standard output, adding file and line informations.

Macro Definition Documentation

#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.

#define PERROR (   string)
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.