| 69 | |
| 70 | |
| 71 | static void errorlimit (FuncState *fs, int limit, const char *what) { |
| 72 | const char *msg = (fs->f->linedefined == 0) ? |
| 73 | luaO_pushfstring(fs->L, "main function has more than %d %s", limit, what) : |
| 74 | luaO_pushfstring(fs->L, "function at line %d has more than %d %s", |
| 75 | fs->f->linedefined, limit, what); |
| 76 | luaX_lexerror(fs->ls, msg, 0); |
| 77 | } |
| 78 | |
| 79 | |
| 80 | static int testnext (LexState *ls, int c) { |
nothing calls this directly
no test coverage detected