interfacetest.cpp 300 B

1234567891011121314151617181920
  1. #include "sharedlib.h"
  2. #ifndef SHAREDLIB_DEFINE
  3. #error Expected SHAREDLIB_DEFINE
  4. #endif
  5. #ifdef HEADERONLY_DEFINE
  6. #error Unexpected HEADERONLY_DEFINE
  7. #endif
  8. #ifndef DEFINE_IFACE_DEFINE
  9. #error Expected DEFINE_IFACE_DEFINE
  10. #endif
  11. int main(int,char**)
  12. {
  13. SharedLibObject slo;
  14. return slo.foo();
  15. }