MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / addfield

Function addfield

lib/lua/src/ltablib.c:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146
147static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) {
148 lua_geti(L, 1, i);
149 if (l_unlikely(!lua_isstring(L, -1)))
150 luaL_error(L, "invalid value (%s) at index %I in table for 'concat'",
151 luaL_typename(L, -1), (LUAI_UACINT)i);
152 luaL_addvalue(b);
153}
154
155
156static 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