Change handling of debug log statments in non-debug builds.
The previous way had a problem when used in statments like:
When built without debugging, this became:
Which is sort of okay, but the compiler complains. The new way also has
the advantage that the compiler always sees and checks the log
arguments. Given that it ends up compiling something like:
} while (0);
It should optimize the entire block out, and should even discard the
literal string used for the format. So it's better all around.
Cherry-picked from internal.
1 file changed