| 81 | |
| 82 | |
| 83 | static l_noret errorlimit (FuncState *fs, int limit, const char *what) { |
| 84 | lua_State *L = fs->ls->L; |
| 85 | const char *msg; |
| 86 | int line = fs->f->linedefined; |
| 87 | const char *where = (line == 0) |
| 88 | ? "main function" |
| 89 | : luaO_pushfstring(L, "function at line %d", line); |
| 90 | msg = luaO_pushfstring(L, "too many %s (limit is %d) in %s", |
| 91 | what, limit, where); |
| 92 | luaX_syntaxerror(fs->ls, msg); |
| 93 | } |
| 94 | |
| 95 | |
| 96 | static void checklimit (FuncState *fs, int v, int l, const char *what) { |
no test coverage detected