Compiler error message metaprogramming: Helping to find the conflicting macro definition

10 · Raymond Chen · Dec. 6, 2021, 6:21 p.m.
Say you want to require that a preprocessor macro is set a particular way: #include <contoso.h> #if CONTOSO_VERSION != 314 #error This header file requires version 314. #endif Okay, if the version isn’t set correctly, you will indeed get the error, The post Compiler error message metaprogramming: Helping to find the conflicting macro definition appeared first on The Old New Thing....