MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / finishrawget

Function finishrawget

extlibs/lua/src/lapi.c:673–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671
672
673static int finishrawget (lua_State *L, const TValue *val) {
674 if (isempty(val)) /* avoid copying empty items to the stack */
675 setnilvalue(s2v(L->top));
676 else
677 setobj2s(L, L->top, val);
678 api_incr_top(L);
679 lua_unlock(L);
680 return ttype(s2v(L->top - 1));
681}
682
683
684static Table *gettable (lua_State *L, int idx) {

Callers 3

lua_rawgetFunction · 0.85
lua_rawgetiFunction · 0.85
lua_rawgetpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected