2009-05-09 16:08:00 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
extern "C" void dbg_trace(const char *);
|
|
|
|
extern "C" void dbg_untrace();
|
|
|
|
|
|
|
|
class MTrace
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MTrace(const char* str)
|
|
|
|
{ dbg_trace(str); }
|
|
|
|
|
|
|
|
~MTrace()
|
|
|
|
{ dbg_untrace(); }
|
|
|
|
};
|
|
|
|
|
2009-05-16 17:58:08 +00:00
|
|
|
#define TRACE(x) MTrace __trc(x);
|