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

Function lua_concat

3rd/lua-5.4.3/src/lapi.c:1277–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275
1276
1277LUA_API void lua_concat (lua_State *L, int n) {
1278 lua_lock(L);
1279 api_checknelems(L, n);
1280 if (n > 0)
1281 luaV_concat(L, n);
1282 else { /* nothing to concatenate */
1283 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0)); /* push empty string */
1284 api_incr_top(L);
1285 }
1286 luaC_checkGC(L);
1287 lua_unlock(L);
1288}
1289
1290
1291LUA_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