| 988 | |
| 989 | |
| 990 | static void checkmode (lua_State *L, const char *mode, const char *x) { |
| 991 | if (mode && strchr(mode, x[0]) == NULL) { |
| 992 | luaO_pushfstring(L, |
| 993 | "attempt to load a %s chunk (mode is '%s')", x, mode); |
| 994 | luaD_throw(L, LUA_ERRSYNTAX); |
| 995 | } |
| 996 | } |
| 997 | |
| 998 | |
| 999 | static void f_parser (lua_State *L, void *ud) { |
no test coverage detected