/opt/ros/diamondback/stacks/graspit_simulator/graspit/graspit_source/include/debug.h File Reference

#include <iostream>
Include dependency graph for debug.h:

Go to the source code of this file.

Defines

#define DBGA(STMT)   std::cerr<<STMT<<std::endl;
#define DBGAF(STREAM, STMT)   {STREAM<<STMT<<std::endl; DBGA(STMT)}
#define DBGP(STMT)
#define DBGPF(STREAM, STMT)   {STREAM<<STMT<<std::endl; DBGP(STMT)}
#define DBGST(STMT)
#define PRINT_STAT(STREAM_PTR, STMT)   if (STREAM_PTR) *STREAM_PTR << STMT << " ";

Detailed Description

Defines some convenience macros for output and debug, which behave differently depending on whether GRASPITDBG is defined:

DBGA(msg) always prints the message to std::err

DBGP(msg) only prints the message if GRASPITDBG is defined, and swallows it otherwise.

To use this, include "debug.h" in your source file, and then define GRASPITDBG just before the include if you want the debug output.

Definition in file debug.h.


Define Documentation

#define DBGA ( STMT   )     std::cerr<<STMT<<std::endl;

Definition at line 53 of file debug.h.

#define DBGAF ( STREAM,
STMT   )     {STREAM<<STMT<<std::endl; DBGA(STMT)}

Definition at line 56 of file debug.h.

#define DBGP ( STMT   ) 

Definition at line 49 of file debug.h.

#define DBGPF ( STREAM,
STMT   )     {STREAM<<STMT<<std::endl; DBGP(STMT)}

Definition at line 57 of file debug.h.

#define DBGST ( STMT   ) 

Definition at line 50 of file debug.h.

#define PRINT_STAT ( STREAM_PTR,
STMT   )     if (STREAM_PTR) *STREAM_PTR << STMT << " ";

Definition at line 55 of file debug.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 10:59:01 2012