lua_touserdata[-0, +0, –]
void *lua_touserdata (lua_State *L, int index);
 If the value at the given index is a full userdata, returns its block address. If the value is a light userdata, returns its pointer. Otherwise, returns NULL. 
lua_touserdata[-0, +0, –]
void *lua_touserdata (lua_State *L, int index);
 If the value at the given index is a full userdata, returns its block address. If the value is a light userdata, returns its pointer. Otherwise, returns NULL. 
Please login to continue.