00001 #ifndef DVUTIL_TRACE_H
00002 #define DVUTIL_TRACE_H
00003
00004
00005 #include <iostream>
00006 #define TRACE_S __PRETTY_FUNCTION__ << ": " << __FILE__ << "." << __LINE__ << std::endl
00007
00008 #define TRACE std::cerr << __PRETTY_FUNCTION__ << ": " << __FILE__ << "." << __LINE__ << std::endl;
00009
00010 #define TRACE_H std::cerr << __PRETTY_FUNCTION__ << ": " << __FILE__ << "." << __LINE__ << " "
00011
00012 #define TRACE_THIS std::cerr << "this = " << static_cast<const void*>(this) << " @ " << TRACE_S ;
00013
00014 #include <string>
00015 #define FUNCTION_S std::string(__PRETTY_FUNCTION__)
00016
00017 #define LOG log() << FUNCTION_S << ": " << __FILE__ << "." << __LINE__
00018 #endif