MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / addfield

Function addfield

deps/lua/src/ltablib.c:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135static void addfield (lua_State *L, luaL_Buffer *b, int i) {
136 lua_rawgeti(L, 1, i);
137 if (!lua_isstring(L, -1))
138 luaL_error(L, "invalid value (%s) at index %d in table for "
139 LUA_QL("concat"), luaL_typename(L, -1), i);
140 luaL_addvalue(b);
141}
142
143
144static int tconcat (lua_State *L) {

Callers 1

tconcatFunction · 0.85

Calls 4

lua_rawgetiFunction · 0.85
lua_isstringFunction · 0.85
luaL_errorFunction · 0.85
luaL_addvalueFunction · 0.85

Tested by

no test coverage detected