Compile-time log level
A runtime level check is cheap, but it isn't free — it's still a branch and, on the disabled path,
A runtime level check is cheap, but it isn't free — it's still a branch and, on the disabled path,
Overview
The preprocessor is a text manipulation tool that runs before compilation. It handles #include, #define, #ifdef, and other directives, producing pure C++ code for the compiler.
Writing tojson/fromjson by hand for a plain data struct is mostly boilerplate — list the
File, line, and function are free only if the call site captures them — which is exactly why they're