Get mutlifile compilation working again and add a test for it
This commit is contained in:
14
unittests/multifile_test_main.cpp
Normal file
14
unittests/multifile_test_main.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "multifile_test_chai.hpp"
|
||||
#include "multifile_test_module.hpp"
|
||||
|
||||
#include <chaiscript/chaiscript.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
Multi_Test_Chai chaitest;
|
||||
Multi_Test_Module chaimodule;
|
||||
|
||||
boost::shared_ptr<chaiscript::ChaiScript> chai = chaitest.get_chai();
|
||||
chai->add(chaimodule.get_module());
|
||||
return chai->eval<int>("get_module_value()");
|
||||
}
|
Reference in New Issue
Block a user