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

Function lua_topointer

lua/lapi.c:408–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407
408LUA_API const void *lua_topointer (lua_State *L, int idx) {
409 StkId o = index2adr(L, idx);
410 switch (ttype(o)) {
411 case LUA_TTABLE: return hvalue(o);
412 case LUA_TFUNCTION: return clvalue(o);
413 case LUA_TTHREAD: return thvalue(o);
414 case LUA_TUSERDATA:
415 case LUA_TLIGHTUSERDATA:
416 return lua_touserdata(L, idx);
417 default: return NULL;
418 }
419}
420
421
422

Callers 15

luaB_tostringFunction · 0.85
luabb_tointeger_intFunction · 0.85
luabb_toreal_intFunction · 0.85
luabb_tointervalym_intFunction · 0.85
luabb_tointervalds_intFunction · 0.85
luabb_toblob_intFunction · 0.85
luabb_todatetime_intFunction · 0.85
luabb_todecimalFunction · 0.85
l_decimal_addFunction · 0.85
l_decimal_subFunction · 0.85

Calls 2

index2adrFunction · 0.85
lua_touserdataFunction · 0.85

Tested by

no test coverage detected