Jean-Marc Lasgouttes wrote:
Jean-Marc> You mean that code like if (FOO_NOT_AVAILABLE) { // use
Jean-Marc> function bar() instead x = bar(); } else { x= foo();
Jean-Marc> }
Jean-Marc> will compile when foo() does not exist on the system? I am
Jean-Marc> surprised.
I see now that the GNU coding standard recommend this use of if(). I
still do not like the fact that it is not obvious from the code that
only one path will be followed.
Please use the #if FOO_NOT_AVAILABLE version. Everything else is just
playing silly buggers.
Angus