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

Function sol_lua_push

examples/source/customization_multiple.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43int sol_lua_push(lua_State* L, const two_things& things) {
44 int amount = sol::stack::push(L, things.a);
45 // amount will be 1: int pushes 1 item
46 amount += sol::stack::push(L, things.b);
47 // amount 2 now, since bool pushes a single item
48 // Return 2 things
49 return amount;
50}
51
52int main() {
53 std::cout << "=== customization ===" << std::endl;

Callers

nothing calls this directly

Calls 1

pushFunction · 0.85

Tested by

no test coverage detected