MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_rawgetp

Function lua_rawgetp

depends/lua/src/lapi.c:670–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668
669
670LUA_API int lua_rawgetp (lua_State *L, int idx, const void *p) {
671 StkId t;
672 TValue k;
673 lua_lock(L);
674 t = index2addr(L, idx);
675 api_check(L, ttistable(t), "table expected");
676 setpvalue(&k, cast(void *, p));
677 setobj2s(L, L->top, luaH_get(hvalue(t), &k));
678 api_incr_top(L);
679 lua_unlock(L);
680 return ttnov(L->top - 1);
681}
682
683
684LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {

Callers 15

GetOutputMethod · 0.85
lua_print_fmtFunction · 0.85
dfhack_lineeditFunction · 0.85
error_tostringFunction · 0.85
convert_to_exceptionFunction · 0.85
PushDFHackMethod · 0.85
PushBaseGlobalsMethod · 0.85
PushModuleMethod · 0.85
RequireMethod · 0.85
RunCoreQueryLoopMethod · 0.85
init_interpreterFunction · 0.85

Calls 3

index2addrFunction · 0.85
castFunction · 0.85
luaH_getFunction · 0.85

Tested by

no test coverage detected