| 23265 | |
| 23266 | template <typename... Args> |
| 23267 | static inline table create_with(lua_State* L, Args&&... args) { |
| 23268 | static_assert(sizeof...(Args) % 2 == 0, "You must have an even number of arguments for a key, value ... list."); |
| 23269 | constexpr int narr = static_cast<int>(meta::count_odd_for_pack_v<std::is_integral, Args...>); |
| 23270 | return create(L, narr, static_cast<int>((sizeof...(Args) / 2) - narr), std::forward<Args>(args)...); |
| 23271 | } |
| 23272 | |
| 23273 | table create(int narr = 0, int nrec = 0) { |
| 23274 | return create(base_t::lua_state(), narr, nrec); |
no test coverage detected