| 19 | } // namespace my_object |
| 20 | |
| 21 | extern "C" int luaopen_my_object(lua_State* L) { |
| 22 | // pass the lua_State, |
| 23 | // the index to start grabbing arguments from, |
| 24 | // and the function itself |
| 25 | // optionally, you can pass extra arguments to the function |
| 26 | // if that's necessary, but that's advanced usage and is |
| 27 | // generally reserved for internals only |
| 28 | return sol::stack::call_lua( |
| 29 | L, 1, my_object::open_my_object); |
| 30 | } |
nothing calls this directly
no test coverage detected