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

Function lua_concat

third-party/lua-5.3.5/src/lapi.c:1140–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138
1139
1140LUA_API void lua_concat (lua_State *L, int n) {
1141 lua_lock(L);
1142 api_checknelems(L, n);
1143 if (n >= 2) {
1144 luaV_concat(L, n);
1145 }
1146 else if (n == 0) { /* push empty string */
1147 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
1148 api_incr_top(L);
1149 }
1150 /* else n == 1; nothing to do */
1151 luaC_checkGC(L);
1152 lua_unlock(L);
1153}
1154
1155
1156LUA_API void lua_len (lua_State *L, int idx) {

Callers 6

multilineFunction · 0.70
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