MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_touserdata

Function lua_touserdata

src/Chain/libraries/glua/lapi.cpp:416–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414
415
416LUA_API void *lua_touserdata(lua_State *L, int idx) {
417 StkId o = index2addr(L, idx);
418 switch (ttnov(o)) {
419 case LUA_TUSERDATA: return getudatamem(uvalue(o));
420 case LUA_TLIGHTUSERDATA: return pvalue(o);
421 default: return nullptr;
422 }
423}
424
425
426LUA_API lua_State *lua_tothread(lua_State *L, int idx) {

Callers 15

lualib_http_requestFunction · 0.85
lualib_http_closeFunction · 0.85
lualib_http_acceptFunction · 0.85
lualib_http_accept_asyncFunction · 0.85
lualib_http_get_req_bodyFunction · 0.85
lualib_http_get_req_pathFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected