MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / getfield

Function getfield

third-party/lua-5.2.4/src/loslib.c:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157static int getfield (lua_State *L, const char *key, int d) {
158 int res, isnum;
159 lua_getfield(L, -1, key);
160 res = (int)lua_tointegerx(L, -1, &isnum);
161 if (!isnum) {
162 if (d < 0)
163 return luaL_error(L, "field " LUA_QS " missing in date table", key);
164 res = d;
165 }
166 lua_pop(L, 1);
167 return res;
168}
169
170
171static const char *checkoption (lua_State *L, const char *conv, char *buff) {

Callers 1

os_timeFunction · 0.70

Calls 3

lua_getfieldFunction · 0.70
lua_tointegerxFunction · 0.70
luaL_errorFunction · 0.70

Tested by

no test coverage detected