Here's the pseudocode for what I need to write using the preprocessor directives:
(IF VAR == NOT DEFINED) OR (VAR == DEFINED AND VAR == 0) THEN
{a few lines of code}
How can I write that logical expression in one line?
I tried this:
#if (defined(VAR) == 0) || ((defined(VAR) == 1) && (VAR == "0"))
but it didn't work. It says:
Undeclared identifier: "VAR".