LUAL_TYPERROR(3) | Library Functions Manual | LUAL_TYPERROR(3) |
luaL_typerror
—
generates an error with a message, function indicator [-0,
+0, v]
#include
<lauxlib.h>
int
luaL_typerror
(lua_State
*L, int narg,
const char *tname);
luaL_typerror
()
generates an error with a message like the following:
location: bad argument narg to 'func' ( tname expected, got rt)
where location is produced by luaL_where(3), func is the name of the current function, and rt is the type name of the actual argument.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The luaL_typerror
() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 21, 2022 | Debian |