MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_concat

Function lua_concat

extlibs/lua/src/lapi.c:1238–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236
1237
1238LUA_API void lua_concat (lua_State *L, int n) {
1239 lua_lock(L);
1240 api_checknelems(L, n);
1241 if (n >= 2) {
1242 luaV_concat(L, n);
1243 }
1244 else if (n == 0) { /* push empty string */
1245 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
1246 api_incr_top(L);
1247 }
1248 /* else n == 1; nothing to do */
1249 luaC_checkGC(L);
1250 lua_unlock(L);
1251}
1252
1253
1254LUA_API void lua_len (lua_State *L, int idx) {

Callers 7

multilineFunction · 0.85
luaB_errorFunction · 0.85
findfieldFunction · 0.85
luaL_errorFunction · 0.85
luaB_auxwrapFunction · 0.85
compat53_findfieldFunction · 0.85
luaL_tracebackFunction · 0.85

Calls 2

luaV_concatFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected