Add loadable module support for ms Visual C++ and fix visual studio specific type identification problems, (while making the C++ more correct)
This commit is contained in:
@@ -7,9 +7,15 @@ std::string hello_world()
|
||||
return "Hello World";
|
||||
}
|
||||
|
||||
extern "C"
|
||||
#ifdef _MSC_VER
|
||||
#define EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define EXPORT
|
||||
#endif
|
||||
|
||||
extern "C"
|
||||
{
|
||||
chaiscript::ModulePtr create_chaiscript_module_test()
|
||||
EXPORT chaiscript::ModulePtr create_chaiscript_module_test()
|
||||
{
|
||||
chaiscript::ModulePtr m(new chaiscript::Module());
|
||||
|
||||
|
Reference in New Issue
Block a user