| 256 | |
| 257 | |
| 258 | static int iter_codes (lua_State *L) { |
| 259 | int lax = lua_toboolean(L, 2); |
| 260 | const char *s = luaL_checkstring(L, 1); |
| 261 | luaL_argcheck(L, !iscontp(s), 1, MSGInvalid); |
| 262 | lua_pushcfunction(L, lax ? iter_auxlax : iter_auxstrict); |
| 263 | lua_pushvalue(L, 1); |
| 264 | lua_pushinteger(L, 0); |
| 265 | return 3; |
| 266 | } |
| 267 | |
| 268 | |
| 269 | /* pattern to match a single UTF-8 character */ |
nothing calls this directly
no test coverage detected