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:
Jason Turner
2009-09-07 17:05:57 +00:00
parent 7e3127549f
commit 798908f127
10 changed files with 347 additions and 12 deletions

View File

@@ -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());