It's simply:Code:#ifdef USE_LOG #define LOG(string) Logger::Get().Log(string) #else #define LOG(string) #endif
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Thread: Using macros with a loggerThreaded View
|
Click Here to Expand Forum to Full Width |