importable.cxx 330 B

123456789101112131415161718192021222324
  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. export module importable;
  11. extern "C++" {
  12. int forwarding();
  13. }
  14. export int from_import()
  15. {
  16. return forwarding();
  17. }