| 11260 | namespace stack_detail { |
| 11261 | |
| 11262 | struct push_function { |
| 11263 | lua_State* L; |
| 11264 | |
| 11265 | push_function(lua_State* L) |
| 11266 | : L(L) { |
| 11267 | } |
| 11268 | |
| 11269 | template <typename T> |
| 11270 | int operator()(T&& value) const { |
| 11271 | return stack::push<T>(L, std::forward<T>(value)); |
| 11272 | } |
| 11273 | }; |
| 11274 | |
| 11275 | } // namespace stack_detail |
| 11276 |