LUAL_ARGCHECK(3) | Library Functions Manual | LUAL_ARGCHECK(3) |
luaL_argcheck
—
checks whether cond is true, function indicator [-0, +0,
v]
#include
<lauxlib.h>
void
luaL_argcheck
(lua_State
*L, int cond,
int narg,
const char
*extramsg);
luaL_argcheck
()
checks whether cond is true. If not, raises an error with the following
message, where func is retrieved from the call stack:
bad argument #<narg> to <func> (<extramsg>)
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The luaL_argcheck
() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 24, 2022 | Debian |