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