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