Logo Search packages:      
Sourcecode: unifdef version File versions  Download package

if4.c

#include <stdio.h>
#include <stdlib.h>

#if defined(FOO) || defined(FOOB)
int foo1() { return 0; }
#else
#error FOO or FOOB not defined
#endif

#if defined(FOOB) || defined(FOO)
int foo2() { return 0; }
#else
#error FOO or FOOB not defined
#endif

#if defined(FOO) && defined(FOOB)
int foo3() { return 0; }
#else
#error FOO and FOOB not defined
#endif

#if defined(FOOB) && defined(FOO)
int foo4() { return 0; }
#else
#error FOO and FOOB not defined
#endif

int main()
{
  foo1();
  foo2();
  foo3();
  foo4();
}

Generated by  Doxygen 1.6.0   Back to index