MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / lua_touserdata

Function lua_touserdata

source/extern/lua/lapi.c:413–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 13

gmatch_auxFunction · 0.85
luaL_testudataFunction · 0.85
resizeboxFunction · 0.85
checkclibFunction · 0.85
gctmFunction · 0.85
getiofileFunction · 0.85
io_readlineFunction · 0.85
createMethod · 0.85
handleErrorMethod · 0.85
setContextRequireMethod · 0.85
createWrappedFunctionMethod · 0.85
registerUserDataTypeMethod · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected