LUA_TOUSERDATA(3) | Library Functions Manual | LUA_TOUSERDATA(3) |
lua_touserdata
—
returns address to userdata, function indicator [-0, +0,
-]
#include
<lua.h>
void *
lua_touserdata
(lua_State
*L, int index);
If the value at the given acceptable index is a full userdata, returns its block address.
If the value is a light userdata, returns its pointer. Otherwise,
returns NULL
.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_touserdata
() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 13, 2022 | Debian |