| 41 | } |
| 42 | |
| 43 | int 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 | |
| 52 | int main() { |
| 53 | std::cout << "=== customization ===" << std::endl; |