LUA_CREATETABLE(3) | Library Functions Manual | LUA_CREATETABLE(3) |
lua_createtable
—
creates a new empty table and pushes it onto the stack,
function indicator [-0, +1, m]
#include
<lua.h>
void
lua_createtable
(lua_State
*L, int narr,
int nrec);
lua_createtable
()
creates a new empty table and pushes it onto the stack. The new table has
space pre-allocated for narr array elements and
nrec non-array elements. This pre-allocation is useful
when you know exactly how many elements the table will have. Otherwise you
can use the function lua_newtable(3).
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_createtable
() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 14, 2022 | Debian |