MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / str_rep

Function str_rep

Source/Misc/lua/src/lua.c:13770–13780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13768}
13769
13770static int str_rep (lua_State *L) {
13771size_t l;
13772luaL_Buffer b;
13773const char *s = luaL_checklstring(L, 1, &l);
13774int n = luaL_checkint(L, 2);
13775luaL_buffinit(L, &b);
13776while (n-- > 0)
13777luaL_addlstring(&b, s, l);
13778luaL_pushresult(&b);
13779return 1;
13780}
13781
13782
13783static int str_byte (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checklstringFunction · 0.85
luaL_buffinitFunction · 0.85
luaL_addlstringFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected