sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ltable.h File Reference
#include "lobject.h"

Go to the source code of this file.

Macros

#define gnode(t, i)
#define gval(n)
#define gnext(n)
#define invalidateTMcache(t)
#define isdummy(t)
#define allocsizenode(t)
#define nodefromval(v)

Functions

LUAI_FUNC const TValue * luaH_getint (Table *t, lua_Integer key)
LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value)
LUAI_FUNC const TValue * luaH_getshortstr (Table *t, TString *key)
LUAI_FUNC const TValue * luaH_getstr (Table *t, TString *key)
LUAI_FUNC const TValue * luaH_get (Table *t, const TValue *key)
LUAI_FUNC void luaH_newkey (lua_State *L, Table *t, const TValue *key, TValue *value)
LUAI_FUNC void luaH_set (lua_State *L, Table *t, const TValue *key, TValue *value)
LUAI_FUNC void luaH_finishset (lua_State *L, Table *t, const TValue *key, const TValue *slot, TValue *value)
LUAI_FUNC Table * luaH_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)
LUAI_FUNC unsigned int luaH_realasize (const Table *t)

Macro Definition Documentation

◆ allocsizenode

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

Definition at line 35 of file ltable.h.

◆ gnext

#define gnext ( n)
Value:
((n)->u.next)

Definition at line 19 of file ltable.h.

◆ gnode

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

Definition at line 17 of file ltable.h.

◆ gval

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

Definition at line 18 of file ltable.h.

◆ invalidateTMcache

#define invalidateTMcache ( t)
Value:
((t)->flags &= ~maskflags)

Definition at line 27 of file ltable.h.

◆ isdummy

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

Definition at line 31 of file ltable.h.

◆ nodefromval

#define nodefromval ( v)
Value:
cast(Node *, (v))

Definition at line 39 of file ltable.h.

Function Documentation

◆ luaH_finishset()

LUAI_FUNC void luaH_finishset ( lua_State * L,
Table * t,
const TValue * key,
const TValue * slot,
TValue * value )

Definition at line 811 of file ltable.c.

◆ luaH_free()

LUAI_FUNC void luaH_free ( lua_State * L,
Table * t )

Definition at line 638 of file ltable.c.

◆ luaH_get()

LUAI_FUNC const TValue * luaH_get ( Table * t,
const TValue * key )

Definition at line 788 of file ltable.c.

◆ luaH_getint()

LUAI_FUNC const TValue * luaH_getint ( Table * t,
lua_Integer key )

Definition at line 730 of file ltable.c.

◆ luaH_getn()

LUAI_FUNC lua_Unsigned luaH_getn ( Table * t)

Definition at line 923 of file ltable.c.

◆ luaH_getshortstr()

LUAI_FUNC const TValue * luaH_getshortstr ( Table * t,
TString * key )

Definition at line 758 of file ltable.c.

◆ luaH_getstr()

LUAI_FUNC const TValue * luaH_getstr ( Table * t,
TString * key )

Definition at line 774 of file ltable.c.

◆ luaH_new()

LUAI_FUNC Table * luaH_new ( lua_State * L)

Definition at line 626 of file ltable.c.

◆ luaH_newkey()

LUAI_FUNC void luaH_newkey ( lua_State * L,
Table * t,
const TValue * key,
TValue * value )

Definition at line 665 of file ltable.c.

◆ luaH_next()

LUAI_FUNC int luaH_next ( lua_State * L,
Table * t,
StkId key )

Definition at line 349 of file ltable.c.

◆ luaH_realasize()

LUAI_FUNC unsigned int luaH_realasize ( const Table * t)

Definition at line 250 of file ltable.c.

◆ luaH_resize()

LUAI_FUNC void luaH_resize ( lua_State * L,
Table * t,
unsigned int nasize,
unsigned int nhsize )

Definition at line 553 of file ltable.c.

◆ luaH_resizearray()

LUAI_FUNC void luaH_resizearray ( lua_State * L,
Table * t,
unsigned int nasize )

Definition at line 590 of file ltable.c.

◆ luaH_set()

LUAI_FUNC void luaH_set ( lua_State * L,
Table * t,
const TValue * key,
TValue * value )

Definition at line 824 of file ltable.c.

◆ luaH_setint()

LUAI_FUNC void luaH_setint ( lua_State * L,
Table * t,
lua_Integer key,
TValue * value )

Definition at line 830 of file ltable.c.