MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / main

Function main

performance_tests/profile_fun_wrappers.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6}
7
8int main()
9{
10 chaiscript::ChaiScript chai(chaiscript::Std_Lib::library());
11
12 chai.add(chaiscript::fun(&f), "f");
13
14 const auto f = chai.eval<std::function<void ()>>(R"(fun(){ f("str", 1.2, false); })");
15
16 for (int i = 0; i < 100000; ++i) {
17 f();
18 }
19
20}

Callers

nothing calls this directly

Calls 3

funFunction · 0.85
fFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected