mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
I initially tried to use the existing .clang-format file, but it does not match the code style (at least with clang-format 11) and the formatting is not consistent across files. Therefore, I decided to rewrite the .clang-format with some personal preferences. Used command find . -iname "*.hpp" -o -iname "*.cpp" | xargs clang-format -i -style=file
18 lines
426 B
C++
18 lines
426 B
C++
#include <chaiscript/chaiscript_basic.hpp>
|
|
|
|
#include "multifile_test_module.hpp"
|
|
|
|
Multi_Test_Module::Multi_Test_Module() noexcept = default;
|
|
|
|
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;
|
|
}
|