// file : bar -*- C++ -*- // copyright : Copyright (c) 2014-2016 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file // #include // Define bar module interface. // // For VC must be included only into module implementation (bar.cxx). The // module should be imported into consumer file with import declaration. // // For CLang must be #included into both module implementation and consumer // files. // #if defined(MODTEST_USE_MODULES) && defined(_MSC_VER) module bar; export { #endif int bar_value (int v); struct bar { explicit bar (int v); int value (); // std::string // message (const char* s) const; private: int v_; }; // Close module export declaration. // #if defined(MODTEST_USE_MODULES) && defined(_MSC_VER) } #endif