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

Function main

performance_tests/profile_cpp_calls_2.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 chai.eval(R"(
15 for (var i = 0; i < 100000; ++i) {
16 f("str", 1.2, false);
17 }
18 )");
19
20}

Callers

nothing calls this directly

Calls 3

funFunction · 0.85
addMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected