WPP - DoTraceLevelMessage inside a Macro

As we all know WPP doesn’t expand macros like this one


as WPP runs before C Preprocessor macros.

There is article in MSDN to how to achive this

But i can’t figure how to use this.

What i need to add in my tracing header file for achieving above macro i.e. i can call PRINTETLLOGS from my code.

you put them in your trace.

here is example for a Macro that print Start of Function

// begin_wpp config
// MyStartFunc();
// USEPREFIX(MyStartFunc, “%!STDPREFIX!”);
// USESUFFIX(MyStartFunc, “++ %!FUNC!\n”);
// end_wpp