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

Function finishrawget

xrepo/packages/l/lua/port/lua/src/lapi.c:718–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716
717
718l_sinline int finishrawget (lua_State *L, const TValue *val) {
719 if (isempty(val)) /* avoid copying empty items to the stack */
720 setnilvalue(s2v(L->top));
721 else
722 setobj2s(L, L->top, val);
723 api_incr_top(L);
724 lua_unlock(L);
725 return ttype(s2v(L->top - 1));
726}
727
728
729static 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