RetroArch
Macros | Functions
ltable.h File Reference
#include "lobject.h"
Include dependency graph for ltable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define gnode(t, i)   (&(t)->node[i])
 
#define gval(n)   (&(n)->i_val)
 
#define gnext(n)   ((n)->i_key.nk.next)
 
#define gkey(n)   cast(const TValue*, (&(n)->i_key.tvk))
 
#define wgkey(n)   (&(n)->i_key.nk)
 
#define invalidateTMcache(t)   ((t)->flags = 0)
 
#define isdummy(t)   ((t)->lastfree == NULL)
 
#define allocsizenode(t)   (isdummy(t) ? 0 : sizenode(t))
 
#define keyfromval(v)   (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))
 

Functions

LUAI_FUNC const TValueluaH_getint (Table *t, lua_Integer key)
 
LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value)
 
LUAI_FUNC const TValueluaH_getshortstr (Table *t, TString *key)
 
LUAI_FUNC const TValueluaH_getstr (Table *t, TString *key)
 
LUAI_FUNC const TValueluaH_get (Table *t, const TValue *key)
 
LUAI_FUNC TValueluaH_newkey (lua_State *L, Table *t, const TValue *key)
 
LUAI_FUNC TValueluaH_set (lua_State *L, Table *t, const TValue *key)
 
LUAI_FUNC TableluaH_new (lua_State *L)
 
LUAI_FUNC void luaH_resize (lua_State *L, Table *t, unsigned int nasize, unsigned int nhsize)
 
LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, unsigned int nasize)
 
LUAI_FUNC void luaH_free (lua_State *L, Table *t)
 
LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key)
 
LUAI_FUNC lua_Unsigned luaH_getn (Table *t)
 

Macro Definition Documentation

◆ allocsizenode

#define allocsizenode (   t)    (isdummy(t) ? 0 : sizenode(t))

◆ gkey

#define gkey (   n)    cast(const TValue*, (&(n)->i_key.tvk))

◆ gnext

#define gnext (   n)    ((n)->i_key.nk.next)

◆ gnode

#define gnode (   t,
 
)    (&(t)->node[i])

◆ gval

#define gval (   n)    (&(n)->i_val)

◆ invalidateTMcache

#define invalidateTMcache (   t)    ((t)->flags = 0)

◆ isdummy

#define isdummy (   t)    ((t)->lastfree == NULL)

◆ keyfromval

#define keyfromval (   v)    (gkey(cast(Node *, cast(char *, (v)) - offsetof(Node, i_val))))

◆ wgkey

#define wgkey (   n)    (&(n)->i_key.nk)

Function Documentation

◆ luaH_free()

LUAI_FUNC void luaH_free ( lua_State L,
Table t 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_get()

LUAI_FUNC const TValue* luaH_get ( Table t,
const TValue key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_getint()

LUAI_FUNC const TValue* luaH_getint ( Table t,
lua_Integer  key 
)
Here is the caller graph for this function:

◆ luaH_getn()

LUAI_FUNC lua_Unsigned luaH_getn ( Table t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_getshortstr()

LUAI_FUNC const TValue* luaH_getshortstr ( Table t,
TString key 
)
Here is the caller graph for this function:

◆ luaH_getstr()

LUAI_FUNC const TValue* luaH_getstr ( Table t,
TString key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_new()

LUAI_FUNC Table* luaH_new ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_newkey()

LUAI_FUNC TValue* luaH_newkey ( lua_State L,
Table t,
const TValue key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_next()

LUAI_FUNC int luaH_next ( lua_State L,
Table t,
StkId  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_resize()

LUAI_FUNC void luaH_resize ( lua_State L,
Table t,
unsigned int  nasize,
unsigned int  nhsize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_resizearray()

LUAI_FUNC void luaH_resizearray ( lua_State L,
Table t,
unsigned int  nasize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_set()

LUAI_FUNC TValue* luaH_set ( lua_State L,
Table t,
const TValue key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaH_setint()

LUAI_FUNC void luaH_setint ( lua_State L,
Table t,
lua_Integer  key,
TValue value 
)
Here is the call graph for this function:
Here is the caller graph for this function: