J
John Hunter
In C++, what is the best what to define a function / macro / template
which will print a string to std::cout if a flag is set, but generate
no code otherwise. In my code I want to be able to do something like
DEBUG_PRINT("some string");
but I want to define DEBUG_PRINT in such a way that code is
conditionally generated.
Thanks!
John Hunter
which will print a string to std::cout if a flag is set, but generate
no code otherwise. In my code I want to be able to do something like
DEBUG_PRINT("some string");
but I want to define DEBUG_PRINT in such a way that code is
conditionally generated.
Thanks!
John Hunter