Case No. 1:
#define DEBUG 1
#define CLOUD 1
-> return "DEBUG && CLOUD";
Case No. 2:
#define DEBUG
#define CLOUD
-> return "Release";
In this example, you can find out what #if (cond)evaluates the numerical condition.
If you want to check only the definition, you must:
#if defined DEBUG && defined CLOUD
source
share