MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_concat

Function lua_concat

WebGLPlugins/lapi.c:1139–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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