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

Function lua_concat

third-party/lua-5.2.4/src/lapi.c:1131–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

loadlineFunction · 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