MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_concat

Function lua_concat

depends/lua/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 7

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

Calls 2

luaV_concatFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected