LUA_TOPOINTER(3) | Library Functions Manual | LUA_TOPOINTER(3) |
lua_topointer
—
converts the value to a generic C pointer, function
indicator [-0, +0, -]
#include
<lua.h>
const void *
lua_topointer
(lua_State
*L, int index);
lua_topointer
()
converts the value at the given acceptable index to a generic C pointer
(void*). The value can be a userdata, a table, a thread, or a function;
otherwise, lua_topointer
returns
NULL
. Different objects will give different
pointers. There is no way to convert the pointer back to its original
value.
Typically this function is used only for debug information.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_topointer
() manual page is based
on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 18, 2022 | Debian |