MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_concat

Function lua_concat

freebsd/contrib/openzfs/module/lua/lapi.c:1128–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126
1127
1128LUA_API void lua_concat (lua_State *L, int n) {
1129 lua_lock(L);
1130 api_checknelems(L, n);
1131 if (n >= 2) {
1132 luaC_checkGC(L);
1133 luaV_concat(L, n);
1134 }
1135 else if (n == 0) { /* push empty string */
1136 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
1137 api_incr_top(L);
1138 }
1139 /* else n == 1; nothing to do */
1140 lua_unlock(L);
1141}
1142
1143
1144LUA_API void lua_len (lua_State *L, int idx) {

Callers 5

luaB_errorFunction · 0.70
findfieldFunction · 0.70
luaL_tracebackFunction · 0.70
luaL_errorFunction · 0.70
luaB_auxwrapFunction · 0.70

Calls 2

luaV_concatFunction · 0.70
luaS_newlstrFunction · 0.70

Tested by

no test coverage detected