mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +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
14 lines
355 B
C++
14 lines
355 B
C++
#include "multifile_test_chai.hpp"
|
|
#include "multifile_test_module.hpp"
|
|
|
|
#include <chaiscript/chaiscript_basic.hpp>
|
|
|
|
int main() {
|
|
Multi_Test_Chai chaitest;
|
|
Multi_Test_Module chaimodule;
|
|
|
|
std::shared_ptr<chaiscript::ChaiScript_Basic> chai = chaitest.get_chai();
|
|
chai->add(chaimodule.get_module());
|
|
return chai->eval<int>("get_module_value()");
|
|
}
|