MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / create_with

Method create_with

extlibs/sol3/include/sol/sol.hpp:23267–23271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

create_named_tableMethod · 0.80

Calls 1

createFunction · 0.85

Tested by

no test coverage detected