LUA_SETTOP(3) | Library Functions Manual | LUA_SETTOP(3) |
lua_settop
— sets
the stack top to the index, function indicator [-?, +?, -]
#include
<lua.h>
void
lua_settop
(lua_State
*L, int index);
lua_settop
()
accepts any acceptable index, or 0, and sets the stack top to this index. If
the new top is larger than the old one, then the new elements are filled
with nil
. If index is 0, then all stack elements are
removed.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_settop
() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 15, 2022 | Debian |