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

Function addfield

depends/lua/src/ltablib.c:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) {
161 lua_geti(L, 1, i);
162 if (!lua_isstring(L, -1))
163 luaL_error(L, "invalid value (%s) at index %d in table for 'concat'",
164 luaL_typename(L, -1), i);
165 luaL_addvalue(b);
166}
167
168
169static int tconcat (lua_State *L) {

Callers 1

tconcatFunction · 0.85

Calls 4

lua_getiFunction · 0.85
lua_isstringFunction · 0.85
luaL_errorFunction · 0.85
luaL_addvalueFunction · 0.85

Tested by

no test coverage detected