examples/scene_example/debug.hh File Reference

Debug utilities. More...

#include <iostream>
#include <string.h>

Go to the source code of this file.

Macros

#define VERBOSE
 Verbose flag. Comment to remove debug features. More...
 
#define __FILENAME__   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
 Current filename macro. More...
 
#define debugPrint(x)   do { std::cout << x; } while (0)
 Print debug information to std::cout. More...
 
#define debugPrintTrace(x)
 Print debug information to std::cout, including current filename, line and function. More...
 

Detailed Description

Debug utilities.

Author
João Borrego : jsbruglie
Rui Figueiredo : ruipimentelfigueiredo

Macro Definition Documentation

#define __FILENAME__   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)

Current filename macro.

#define debugPrint (   x)    do { std::cout << x; } while (0)

Print debug information to std::cout.

#define debugPrintTrace (   x)
Value:
do {\
std::cout << __FILENAME__ << ":" << __LINE__ << ":" << __func__ << ": " << \
x << "\n";\
} while (0)
#define __FILENAME__
Current filename macro.
Definition: examples/scene_example/debug.hh:32

Print debug information to std::cout, including current filename, line and function.

#define VERBOSE

Verbose flag. Comment to remove debug features.