#include #include double f(const std::string &, double, bool) noexcept { return .0; } int main() { chaiscript::ChaiScript chai; chai.add(chaiscript::fun(&f), "f"); const auto f = chai.eval>(R"(fun(){ f("str", 1.2, false); })"); for (int i = 0; i < 100000; ++i) { f(); } }