13 #define gnode(t,i) (&(t)->node[i])
14 #define gval(n) (&(n)->i_val)
15 #define gnext(n) ((n)->i_key.nk.next)
19 #define gkey(n) cast(const TValue*, (&(n)->i_key.tvk))
25 #define wgkey(n) (&(n)->i_key.nk)
27 #define invalidateTMcache(t) ((t)->flags = 0)
31 #define isdummy(t) ((t)->lastfree == NULL)
35 #define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t))
39 #define keyfromval(v) \
40 (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))
60 #if defined(LUA_DEBUG)
void luaH_resize(lua_State *L, Table *t, unsigned int nasize, unsigned int nhsize)
int luaH_next(lua_State *L, Table *t, StkId key)
Table * luaH_new(lua_State *L)
const TValue * luaH_get(Table *t, const TValue *key)
lua_Unsigned luaH_getn(Table *t)
void luaH_setint(lua_State *L, Table *t, lua_Integer key, TValue *value)
TValue * luaH_set(lua_State *L, Table *t, const TValue *key)
void luaH_free(lua_State *L, Table *t)
TValue * luaH_newkey(lua_State *L, Table *t, const TValue *key)
const TValue * luaH_getint(Table *t, lua_Integer key)
const TValue * luaH_getstr(Table *t, TString *key)
const TValue * luaH_getshortstr(Table *t, TString *key)
void luaH_resizearray(lua_State *L, Table *t, unsigned int nasize)
unsigned LUA_INTEGER lua_Unsigned