Defines Considered Harmful
Written by Grigory Rechistov in Uncategorized on 23.03.2020. Tags: refactoring, define, macrodefines,
Why bother
Macrodefinitions in C/C++ code are a sharp tool which must be wielded with care. Modern compilers allow us to write modern C code without resorting to the majority of preprocessor tricks we’ve had to use if we had been stuck in 1999. The goal here is …