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

Function lua_concat

lib/lua/src/lapi.c:1285–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283
1284
1285LUA_API void lua_concat (lua_State *L, int n) {
1286 lua_lock(L);
1287 api_checknelems(L, n);
1288 if (n > 0)
1289 luaV_concat(L, n);
1290 else { /* nothing to concatenate */
1291 setsvalue2s(L, L->top.p, luaS_newlstr(L, "", 0)); /* push empty string */
1292 api_incr_top(L);
1293 }
1294 luaC_checkGC(L);
1295 lua_unlock(L);
1296}
1297
1298
1299LUA_API void lua_len (lua_State *L, int idx) {

Callers 5

multilineFunction · 0.85
luaB_errorFunction · 0.85
findfieldFunction · 0.85
luaL_errorFunction · 0.85
luaB_auxwrapFunction · 0.85

Calls 2

luaV_concatFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected