Better way to strip user specified strings from the final binary
-
I want to strip all text strings (which I mostly use for debugging) from my final binary.
One way I could do is to use #if defined in every line where i use qDebug/cout/cerr but it will clutter the code.Is their a clean & easy way to achieve the same goal ?
-
Or - slightly more complex for qDebug() etc: Define your own message handler which does nothing in a release build.