Revision dfa5401af6d9cd5ba21b68d532d84bdd23517ea4 authored by Brad King on 14 June 2022, 18:20:32 UTC, committed by Brad King on 14 June 2022, 18:21:01 UTC
1 parent 3b4bd01
Raw File
bar.cpp

#ifdef FOO_LIBRARY
#  error Unexpected FOO_LIBRARY
#endif

#ifdef BAR_USE_BANG
#  ifndef BANG_LIBRARY
#    error Expected BANG_LIBRARY
#  endif
#  include "bang.h"
#else
#  ifdef BANG_LIBRARY
#    error Unexpected BANG_LIBRARY
#  endif
#endif

#include "bar.h"

int bar()
{
#ifdef BAR_USE_BANG
  return bang();
#else
  return 0;
#endif
}
back to top