KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
EZCallTrace Struct Reference

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
 

Detailed Description

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); }


The documentation for this struct was generated from the following files: