MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_concat

Function lua_concat

third-party/lua-5.5.0/src/lapi.c:1294–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292
1293
1294LUA_API void lua_concat (lua_State *L, int n) {
1295 lua_lock(L);
1296 api_checknelems(L, n);
1297 if (n > 0) {
1298 luaV_concat(L, n);
1299 luaC_checkGC(L);
1300 }
1301 else { /* nothing to concatenate */
1302 setsvalue2s(L, L->top.p, luaS_newlstr(L, "", 0)); /* push empty string */
1303 api_incr_top(L);
1304 }
1305 lua_unlock(L);
1306}
1307
1308
1309LUA_API void lua_len (lua_State *L, int idx) {

Callers 5

multilineFunction · 0.70
luaB_errorFunction · 0.70
findfieldFunction · 0.70
luaL_errorFunction · 0.70
luaB_auxwrapFunction · 0.70

Calls 2

luaV_concatFunction · 0.70
luaS_newlstrFunction · 0.70

Tested by

no test coverage detected