Defining a customization point that lets us put the correct object type on the stack.
| 135 | // Defining a customization point that lets us put the correct |
| 136 | // object type on the stack. |
| 137 | int sol_lua_push(sol::types<BaseObject>, lua_State* L, |
| 138 | const BaseObject& obj) { |
| 139 | return obj.pushAsRetyped(L, BaseObjectLifetime::Value); |
| 140 | } |
| 141 | int sol_lua_push(sol::types<BaseObject*>, lua_State* L, |
| 142 | const BaseObject* obj) { |
| 143 | return obj->pushAsRetyped(L, BaseObjectLifetime::Pointer); |
nothing calls this directly
no test coverage detected