semantic error */
| 41 | |
| 42 | /* semantic error */ |
| 43 | l_noret luaK_semerror (LexState *ls, const char *fmt, ...) { |
| 44 | const char *msg; |
| 45 | va_list argp; |
| 46 | pushvfstring(ls->L, argp, fmt, msg); |
| 47 | ls->t.token = 0; /* remove "near <token>" from final message */ |
| 48 | ls->linenumber = ls->lastline; /* back to line of last used token */ |
| 49 | luaX_syntaxerror(ls, msg); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | /* |
no test coverage detected