Skip to main content

5 docs tagged with "macros"

View all tags

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,

Functions and Macros

Functions and macros allow you to create reusable CMake code, reducing duplication and improving maintainability. While they appear similar, they have important differences in how they handle variable scope.

Preprocessing in C++

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.

Serialization macros

Writing tojson/fromjson by hand for a plain data struct is mostly boilerplate — list the