Move std::list<> support from main.cpp into a module, stl_extra.cpp, to better allow for measuring of core compile times / performance.

This commit is contained in:
Jason Turner
2009-09-15 01:30:51 +00:00
parent 63de0fd33c
commit 4bdbcf30ff
10 changed files with 37 additions and 19 deletions

View File

@@ -7,19 +7,10 @@ std::string hello_world()
return "Hello World";
}
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif
extern "C"
CHAISCRIPT_MODULE_EXPORT chaiscript::ModulePtr create_chaiscript_module_test()
{
EXPORT chaiscript::ModulePtr create_chaiscript_module_test()
{
chaiscript::ModulePtr m(new chaiscript::Module());
chaiscript::ModulePtr m(new chaiscript::Module());
m->add(chaiscript::fun(hello_world), "hello_world");
return m;
}
m->add(chaiscript::fun(hello_world), "hello_world");
return m;
}