RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
debug.h File Reference
#include <execinfo.h>
#include <stdio.h>

Go to the source code of this file.

Macros

#define ERROR_MSG(fmt, args...)   do { fprintf(stderr,"%s:%d:",__FILE__,__LINE__); fprintf(stderr,fmt,## args); } while(0)
 
#define DEBUG_MSG(fmt, args...)   do { ; } while(0)
 Prints debug messages to standard error. More...
 

Macro Definition Documentation

#define DEBUG_MSG( fmt,
 args... 
)   do { ; } while(0)

Prints debug messages to standard error.

When compiled without the DEBUG flag messages compile out.

Definition at line 53 of file debug.h.

#define ERROR_MSG( fmt,
 args... 
)   do { fprintf(stderr,"%s:%d:",__FILE__,__LINE__); fprintf(stderr,fmt,## args); } while(0)

Definition at line 41 of file debug.h.