Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

#define phPROGRESS fmt   ) 
 

Value:

{\
            phPRINT( "(pid:%llu|thread:%llu %s:%d @ %s)\t" fmt,\
                    (long long unsigned int)phProcessId(),\
                    (long long unsigned int)phGetCurrentThreadId(), \
                    __PHILE__,__LINE__,function, \
                    ## __VA_ARGS__); \
        }
This is a verbose print macro to instrument progress through the code. The ellipses are the arguments as would be passed to a printf call after the format. In addition to printing the string format and arguments, the macro adds in process id, thread id, file name, line number and function. This can be very useful when performing quick debugging. Also, sometimes one can only debug with the prints when the program behaves differently in a debugger than during normal runtime.

Definition at line 163 of file phPrint.h.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:28 2007 for phission by  doxygen 1.4.4