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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user