importable.cxx 406 B

12345678910111213141516171819202122232425262728
  1. module;
  2. #include "include/include.h"
  3. #ifndef include_h_included
  4. # error "include define not found"
  5. #endif
  6. #include "includes/includes.h"
  7. #ifndef includes_h_included
  8. # error "includes define not found"
  9. #endif
  10. #ifndef FROM_USAGE_REQS
  11. # error "missing `FROM_USAGE_REQS` define"
  12. #endif
  13. export module importable;
  14. extern "C++" {
  15. int forwarding();
  16. }
  17. export int from_import()
  18. {
  19. return forwarding();
  20. }