mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +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
15 lines
497 B
C++
15 lines
497 B
C++
#include "multifile_test_chai.hpp"
|
|
|
|
#include <chaiscript/chaiscript_stdlib.hpp>
|
|
#include <chaiscript/language/chaiscript_parser.hpp>
|
|
|
|
Multi_Test_Chai::Multi_Test_Chai()
|
|
: m_chai(new chaiscript::ChaiScript_Basic(
|
|
chaiscript::Std_Lib::library(),
|
|
std::make_unique<chaiscript::parser::ChaiScript_Parser<chaiscript::eval::Noop_Tracer, chaiscript::optimizer::Optimizer_Default>>())) {
|
|
}
|
|
|
|
std::shared_ptr<chaiscript::ChaiScript_Basic> Multi_Test_Chai::get_chai() {
|
|
return m_chai;
|
|
}
|