| 605 | |
| 606 | |
| 607 | static void addinfo (lua_State *L, const char *msg) { |
| 608 | CallInfo *ci = L->ci; |
| 609 | if (isLua(ci)) { /* is Lua code? */ |
| 610 | char buff[LUA_IDSIZE]; /* add file:line information */ |
| 611 | int line = currentline(L, ci); |
| 612 | luaO_chunkid(buff, getstr(getluaproto(ci)->source), LUA_IDSIZE); |
| 613 | luaO_pushfstring(L, "%s:%d: %s", buff, line, msg); |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | |
| 618 | void luaG_errormsg (lua_State *L) { |
no test coverage detected