MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_concat

Function lua_concat

deps/lua/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 10

loadlineFunction · 0.85
luaB_errorFunction · 0.85
luaB_auxwrapFunction · 0.85
luaL_errorFunction · 0.85
adjuststackFunction · 0.85
luaL_pushresultFunction · 0.85
mp_packFunction · 0.85
findfileFunction · 0.85
ll_requireFunction · 0.85
db_errorfbFunction · 0.85

Calls 2

luaV_concatFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected