MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / addfield

Function addfield

3rd/lua-5.4.3/src/ltablib.c:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

tconcatFunction · 0.85

Calls 4

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

Tested by

no test coverage detected