diff --git a/include/jlcxx/jlcxx_config.hpp b/include/jlcxx/jlcxx_config.hpp index 5d7a286..2398656 100644 --- a/include/jlcxx/jlcxx_config.hpp +++ b/include/jlcxx/jlcxx_config.hpp @@ -15,8 +15,8 @@ #endif #define JLCXX_VERSION_MAJOR 0 -#define JLCXX_VERSION_MINOR 13 -#define JLCXX_VERSION_PATCH 2 +#define JLCXX_VERSION_MINOR 14 +#define JLCXX_VERSION_PATCH 0 // From https://stackoverflow.com/questions/5459868/concatenate-int-to-string-using-c-preprocessor #define __JLCXX_STR_HELPER(x) #x diff --git a/include/jlcxx/stl.hpp b/include/jlcxx/stl.hpp index 09705d9..3bdb043 100644 --- a/include/jlcxx/stl.hpp +++ b/include/jlcxx/stl.hpp @@ -50,9 +50,9 @@ namespace stl JLCXX_API jl_module_t* stl_module(); -void set_wrapper(Module& stl, std::string name, jl_value_t* supertype); -TypeWrapper1& get_wrapper(std::string name); -bool has_wrapper(std::string name); +JLCXX_API void set_wrapper(Module& stl, std::string name, jl_value_t* supertype); +JLCXX_API TypeWrapper1& get_wrapper(std::string name); +JLCXX_API bool has_wrapper(std::string name); // Separate per-container functions to split up the compilation over multiple C++ files void apply_vector(); diff --git a/src/stl.cpp b/src/stl.cpp index d54c0e4..d16dc31 100644 --- a/src/stl.cpp +++ b/src/stl.cpp @@ -20,7 +20,7 @@ StoredWrappersT& stl_wrappers() return wrappers; } -void set_wrapper(Module& stl, std::string name, jl_value_t* supertype) +JLCXX_API void set_wrapper(Module& stl, std::string name, jl_value_t* supertype) { auto result = stl_wrappers().insert(std::make_pair(name, stl.add_type>>(name, supertype))); if(!result.second) @@ -29,7 +29,7 @@ void set_wrapper(Module& stl, std::string name, jl_value_t* supertype) } } -TypeWrapper1& get_wrapper(std::string name) +JLCXX_API TypeWrapper1& get_wrapper(std::string name) { auto result = stl_wrappers().find(name); if(result == stl_wrappers().end()) @@ -39,7 +39,7 @@ TypeWrapper1& get_wrapper(std::string name) return result->second; } -bool has_wrapper(std::string name) +JLCXX_API bool has_wrapper(std::string name) { return stl_wrappers().count(name) != 0; }