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

Function open_my_object

examples/require_dll_example/source/my_object.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace my_object {
7
8 sol::table open_my_object(sol::this_state L) {
9 sol::state_view lua(L);
10 sol::table module = lua.create_table();
11 module.new_usertype<test>("test",
12 sol::constructors<test(), test(int)>(),
13 "value",
14 &test::value);
15
16 return module;
17 }
18
19} // namespace my_object
20

Callers

nothing calls this directly

Calls 1

create_tableMethod · 0.80

Tested by

no test coverage detected