| 315 | template<typename T> concept lua_integral = (std::is_integral_v<T> || std::is_enum_v<T>); |
| 316 | |
| 317 | inline void Push(lua_State *state, lua_integral auto value) { |
| 318 | lua_pushinteger(state, value); |
| 319 | } |
| 320 | inline void Push(lua_State* state, std::floating_point auto value) { |
| 321 | lua_pushnumber(state, lua_Number(value)); |
| 322 | } |
no test coverage detected