| 657 | |
| 658 | |
| 659 | void luaG_runerror(lua_State *L, const char *fmt, ...) { |
| 660 | CallInfo *ci = L->ci; |
| 661 | const char *msg; |
| 662 | va_list argp; |
| 663 | va_start(argp, fmt); |
| 664 | msg = luaO_pushvfstring(L, fmt, argp); /* format message */ |
| 665 | va_end(argp); |
| 666 | if (isLua(ci)) /* if Lua function, add source:line information */ |
| 667 | luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci)); |
| 668 | global_glua_chain_api->throw_exception(L, THINKYOUNG_API_LVM_ERROR, msg); |
| 669 | luaG_errormsg(L, msg); |
| 670 | } |
| 671 | |
| 672 | |
| 673 | void luaG_traceexec(lua_State *L) { |
no test coverage detected