LUAL_CHECKUDATA(3) Library Functions Manual LUAL_CHECKUDATA(3)

luaL_checkudatachecks whether the function argument is a userdata of a certain type, function indicator [-0, +0, v]

#include <lauxlib.h>

void *
luaL_checkudata(lua_State *L, int narg, const char *tname);

() checks whether the function argument narg is a userdata of the type tname (see luaL_newmetatable(3)).

luaL_newmetatable(3)

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The luaL_checkudata() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 24, 2022 Debian