| 650 | |
| 651 | |
| 652 | l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { |
| 653 | CallInfo *ci = L->ci; |
| 654 | const char *msg; |
| 655 | va_list argp; |
| 656 | va_start(argp, fmt); |
| 657 | msg = luaO_pushvfstring(L, fmt, argp); /* format message */ |
| 658 | va_end(argp); |
| 659 | if (isLua(ci)) /* if Lua function, add source:line information */ |
| 660 | luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci)); |
| 661 | luaG_errormsg(L); |
| 662 | } |
| 663 | |
| 664 | |
| 665 | void luaG_traceexec (lua_State *L) { |
no test coverage detected