MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_touserdata

Function lua_touserdata

lua/lapi.c:392–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391
392LUA_API void *lua_touserdata (lua_State *L, int idx) {
393 StkId o = index2adr(L, idx);
394 switch (ttype(o)) {
395 case LUA_TUSERDATA: return (rawuvalue(o) + 1);
396 case LUA_TLIGHTUSERDATA: return pvalue(o);
397 default: return NULL;
398 }
399}
400
401
402LUA_API lua_State *lua_tothread (lua_State *L, int idx) {

Callers 15

pmainFunction · 0.85
luabb_toblob_intFunction · 0.85
l_cstring_freeFunction · 0.85
l_datetime_yearFunction · 0.85
l_datetime_monthFunction · 0.85
l_datetime_mdayFunction · 0.85
l_datetime_ydayFunction · 0.85
l_datetime_wdayFunction · 0.85
l_datetime_hourFunction · 0.85
l_datetime_minFunction · 0.85
l_datetime_secFunction · 0.85
l_datetime_msecFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected