pub fn luaL_testudata(
l: LuaState,
arg: c_int,
tname: LuaString,
) -> Option<*mut Userdata>Expand description
This function works like luaL_checkudata, except that, when the test fails, it returns None instead of throwing an error.
Adapted from Lua 5.3, note this does not actually exist in gluajit