1 /* Copyright 2004, 2008 Bob Proulx <bob@proulx.com>
2 Distributed under the two-clause BSD licence;
3 see the COPYING file for details. */
9 /* This code is commented out. "#if 0 then" */
11 /* This code is passed through. "#if 0 else" */
15 /* This code is passed through. "#if 1 then" */
17 /* This code is passed through. "#if 1 else" */
20 #if defined(FOO) || defined(FOOB)
21 int foo1() { return 0; }
23 #error FOO or FOOB not defined
26 #if defined(FOOB) || defined(FOO)
27 int foo2() { return 0; }
29 #error FOO or FOOB not defined
32 #if defined(FOO) && defined(FOOB)
33 int foo3() { return 0; }
35 #error FOO and FOOB not defined
38 #if defined(FOOB) && defined(FOO)
39 int foo4() { return 0; }
41 #error FOO and FOOB not defined