| 72 | |
| 73 | |
| 74 | static l_noret errorlimit (FuncState *fs, int limit, const char *what) { |
| 75 | lua_State *L = fs->ls->L; |
| 76 | const char *msg; |
| 77 | int line = fs->f->linedefined; |
| 78 | const char *where = (line == 0) |
| 79 | ? "main function" |
| 80 | : luaO_pushfstring(L, "function at line %d", line); |
| 81 | msg = luaO_pushfstring(L, "too many %s (limit is %d) in %s", |
| 82 | what, limit, where); |
| 83 | luaX_syntaxerror(fs->ls, msg); |
| 84 | } |
| 85 | |
| 86 | |
| 87 | static void checklimit (FuncState *fs, int v, int l, const char *what) { |
no test coverage detected