MCPcopy Create free account
hub / github.com/ThePhD/sol2 / main

Function main

examples/source/docs/inheritance.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19int main(int, char*[]) {
20
21 sol::state lua;
22
23 lua.new_usertype<A>("A", "call", &A::call);
24
25 lua.new_usertype<B>("B",
26 "call",
27 &B::call,
28 sol::base_classes,
29 sol::bases<A>());
30
31 return 0;
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected