Relative Content

Tag Archive for cc-preprocessor

Evaluation of defined(x) in a `#pragma message` output string

For debugging purposes, I am trying to output information on whether certain symbols are defined, but without having to impair my code readability with too many #if defined() blocks. I tried using the defined() operator in text output by #pragma message like so: