|
|
@@ -133,6 +133,14 @@ struct Table {
|
|
|
luaL_checktype(state, index, LUA_TTABLE);
|
|
|
}
|
|
|
|
|
|
+ Table(State* state):
|
|
|
+ Table(state, (lua_newtable(state), -1))
|
|
|
+ {}
|
|
|
+
|
|
|
+ Table(State* state, const MemberMap& fields):
|
|
|
+ Table(state, (luwra::push(state, fields), -1))
|
|
|
+ {}
|
|
|
+
|
|
|
template <typename K> inline
|
|
|
internal::TableAccessor<internal::Path<const Reference&, K>> access(K&& key) const {
|
|
|
return {ref.impl->state, {ref, std::forward<K>(key)}};
|