logische Operatoren in Präprozessor-Direktive
-
Sind logische Operatoren (und, oder) bei #if uä. im Standard definiert? Es gibt Compiler, die unterstützen zB.
#if DEF1 && DEF2
aber ist das standardisiert, dh. compilerunabhängig?
Ist das ggf. bei C++ anders?
-
Lt. C a Reference Manual 5th Ed. (Harbinson & Steele) Kap.3.3.5 ist es wohl Standard:
The defined operator may be more convenient to use because it is possible to build up complex expressions such as this:
#if defined(VAX) && !defined(UNIX) && debugging ...