| 91 | } |
| 92 | |
| 93 | static int str_rep (lua_State *L) { |
| 94 | size_t l; |
| 95 | luaL_Buffer b; |
| 96 | const char *s = luaL_checklstring(L, 1, &l); |
| 97 | int n = luaL_checkint(L, 2); |
| 98 | luaL_buffinit(L, &b); |
| 99 | while (n-- > 0) |
| 100 | luaL_addlstring(&b, s, l); |
| 101 | luaL_pushresult(&b); |
| 102 | return 1; |
| 103 | } |
| 104 | |
| 105 | |
| 106 | static int str_byte (lua_State *L) { |
nothing calls this directly
no test coverage detected