Y
yoonghm
Hi:
I have a large piece of C++ source code that make use of cout
function to perform run-time trace. Due to performance issues, I would
like to turn off the it from the compilation. However, I do not want to
change each of the source code but only the trace functions. For
example,
int
main()
{
TRACE::Show(xxxx)
...
}
In the trace.h:
Class TRACE
{
public: Show(xxxx);
}
In the trace.cc
TRACE::Show(xxx)
{
}
Any example to use macro to define the Show(xxx) to none from the
trace.cc or trace.h?
Regards
Yoong
I have a large piece of C++ source code that make use of cout
function to perform run-time trace. Due to performance issues, I would
like to turn off the it from the compilation. However, I do not want to
change each of the source code but only the trace functions. For
example,
int
main()
{
TRACE::Show(xxxx)
...
}
In the trace.h:
Class TRACE
{
public: Show(xxxx);
}
In the trace.cc
TRACE::Show(xxx)
{
}
Any example to use macro to define the Show(xxx) to none from the
trace.cc or trace.h?
Regards
Yoong