pub unsafe extern "C" fn topointer(
state: lua_State,
index: i32,
) -> *const c_void
Expand description
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, topointer
(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.