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

Function main

unittests/c_linkage_test.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14int main()
15{
16 chaiscript::ChaiScript_Basic chai(create_chaiscript_stdlib(),create_chaiscript_parser());
17 chai.add(chaiscript::fun(&do_something), "do_something");
18
19 return chai.eval<int>("do_something(101)") == 101 % 2?EXIT_SUCCESS:EXIT_FAILURE;
20
21}

Callers

nothing calls this directly

Calls 4

create_chaiscript_stdlibFunction · 0.85
create_chaiscript_parserFunction · 0.85
funFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected