27 lines
339 B
C++
Raw Normal View History

2013-11-03 12:27:13 +02:00
#ifdef FOO_LIBRARY
2018-08-09 18:06:22 +02:00
# error Unexpected FOO_LIBRARY
2013-11-03 12:27:13 +02:00
#endif
#ifdef BAR_USE_BANG
2018-08-09 18:06:22 +02:00
# ifndef BANG_LIBRARY
# error Expected BANG_LIBRARY
# endif
# include "bang.h"
2013-11-03 12:27:13 +02:00
#else
2018-08-09 18:06:22 +02:00
# ifdef BANG_LIBRARY
# error Unexpected BANG_LIBRARY
# endif
2013-11-03 12:27:13 +02:00
#endif
#include "bar.h"
int bar()
{
#ifdef BAR_USE_BANG
return bang();
#else
return 0;
#endif
}