Get mutlifile compilation working again and add a test for it
This commit is contained in:
21
unittests/multifile_test_module.cpp
Normal file
21
unittests/multifile_test_module.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <chaiscript/chaiscript.hpp>
|
||||
|
||||
#include "multifile_test_module.hpp"
|
||||
|
||||
Multi_Test_Module::Multi_Test_Module()
|
||||
{
|
||||
}
|
||||
|
||||
int Multi_Test_Module::get_module_value()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
chaiscript::ModulePtr Multi_Test_Module::get_module()
|
||||
{
|
||||
chaiscript::ModulePtr module(new chaiscript::Module());
|
||||
|
||||
module->add(chaiscript::fun(&Multi_Test_Module::get_module_value), "get_module_value");
|
||||
|
||||
return module;
|
||||
}
|
Reference in New Issue
Block a user