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

Function lua_concat

third-party/lua-5.1.5/src/lapi.c:990–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988
989
990LUA_API void lua_concat (lua_State *L, int n) {
991 lua_lock(L);
992 api_checknelems(L, n);
993 if (n >= 2) {
994 luaC_checkGC(L);
995 luaV_concat(L, n, cast_int(L->top - L->base) - 1);
996 L->top -= (n-1);
997 }
998 else if (n == 0) { /* push empty string */
999 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
1000 api_incr_top(L);
1001 }
1002 /* else n == 1; nothing to do */
1003 lua_unlock(L);
1004}
1005
1006
1007LUA_API lua_Alloc lua_getallocf (lua_State *L, void **ud) {

Callers 9

loadlineFunction · 0.70
luaB_errorFunction · 0.70
luaB_auxwrapFunction · 0.70
luaL_errorFunction · 0.70
adjuststackFunction · 0.70
luaL_pushresultFunction · 0.70
findfileFunction · 0.70
ll_requireFunction · 0.70
db_errorfbFunction · 0.70

Calls 2

luaV_concatFunction · 0.70
luaS_newlstrFunction · 0.70

Tested by

no test coverage detected