MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_concat

Function lua_concat

src/Chain/libraries/glua/lapi.cpp:1228–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226
1227
1228LUA_API void lua_concat(lua_State *L, int n) {
1229 lua_lock(L);
1230 api_checknelems(L, n);
1231 if (n >= 2) {
1232 luaC_checkGC(L);
1233 luaV_concat(L, n);
1234 }
1235 else if (n == 0) { /* push empty string */
1236 setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
1237 api_incr_top(L);
1238 }
1239 /* else n == 1; nothing to do */
1240 lua_unlock(L);
1241}
1242
1243
1244LUA_API void lua_len(lua_State *L, int idx) {

Callers 8

luaB_auxwrapFunction · 0.85
findfieldFunction · 0.85
luaL_tracebackFunction · 0.85
luaL_errorFunction · 0.85
luaB_errorFunction · 0.85
multilineFunction · 0.85
multilineFunction · 0.85
multilineFunction · 0.85

Calls 2

luaV_concatFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected