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

Function settabss

depends/lua/src/ldblib.c:107–110  ·  view source on GitHub ↗

** Variations of 'lua_settable', used by 'db_getinfo' to put results ** from 'lua_getinfo' into result table. Key is always a string; ** value can be a string, an int, or a boolean. */

Source from the content-addressed store, hash-verified

105** value can be a string, an int, or a boolean.
106*/
107static void settabss (lua_State *L, const char *k, const char *v) {
108 lua_pushstring(L, v);
109 lua_setfield(L, -2, k);
110}
111
112static void settabsi (lua_State *L, const char *k, int v) {
113 lua_pushinteger(L, v);

Callers 1

db_getinfoFunction · 0.85

Calls 2

lua_pushstringFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected