KrisLibrary
1.0.0
|
Helper class that eases function call tracing. More...
#include <EZTrace.h>
Public Member Functions | |
EZCallTrace (const char *name) | |
EZCallTrace (const char *name, const char *args,...) | |
template<class T > | |
const T & | Return (const T &val) |
Public Attributes | |
std::string | name |
std::string | retval |
Helper class that eases function call tracing.
On entry to a function, instantiate an EZCallTrace object. On exit, optionally pass the return value to Return(). If this isn't done, "void" is passed to EZTrace as the return value. e.g.
int foo() { EZCallTrace tr("foo"); ... return tr.Return(bar); }