| 696 | |
| 697 | |
| 698 | l_noret luaG_callerror (lua_State *L, const TValue *o) { |
| 699 | CallInfo *ci = L->ci; |
| 700 | const char *name = NULL; /* to avoid warnings */ |
| 701 | const char *what = (isLua(ci)) ? funcnamefromcode(L, ci, &name) : NULL; |
| 702 | if (what != NULL) { |
| 703 | const char *t = luaT_objtypename(L, o); |
| 704 | luaG_runerror(L, "%s '%s' is not callable (a %s value)", what, name, t); |
| 705 | } |
| 706 | else |
| 707 | luaG_typeerror(L, o, "call"); |
| 708 | } |
| 709 | |
| 710 | |
| 711 | l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) { |
no test coverage detected