diff options
Diffstat (limited to 'ldebug.c')
| -rw-r--r-- | ldebug.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -696,6 +696,12 @@ l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { | |||
| 696 | } | 696 | } |
| 697 | 697 | ||
| 698 | 698 | ||
| 699 | l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) { | ||
| 700 | luaG_runerror(L, "bad 'for' %s (number expected, got %s)", | ||
| 701 | what, luaT_objtypename(L, o)); | ||
| 702 | } | ||
| 703 | |||
| 704 | |||
| 699 | l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) { | 705 | l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) { |
| 700 | if (ttisstring(p1) || cvt2str(p1)) p1 = p2; | 706 | if (ttisstring(p1) || cvt2str(p1)) p1 = p2; |
| 701 | luaG_typeerror(L, p1, "concatenate"); | 707 | luaG_typeerror(L, p1, "concatenate"); |
