
- ChaiScript no longer includes or automatically instantiates std lib - ChaiScript constructor now requires an std lib instance in the form of a ModulePtr object - This new layout facilitates better usage of compilation firewalls and factories for reducing the overall impact of ChaiScript on a project
15 lines
282 B
C++
15 lines
282 B
C++
#include "multifile_test_chai.hpp"
|
|
|
|
#include <chaiscript/chaiscript_stdlib.hpp>
|
|
|
|
Multi_Test_Chai::Multi_Test_Chai()
|
|
: m_chai(new chaiscript::ChaiScript(chaiscript::Std_Lib::library()))
|
|
{
|
|
}
|
|
|
|
|
|
std::shared_ptr<chaiscript::ChaiScript> Multi_Test_Chai::get_chai()
|
|
{
|
|
return m_chai;
|
|
}
|