aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldebug.c b/ldebug.c
index 3590010c..ee1b87d9 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -696,6 +696,12 @@ l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
696} 696}
697 697
698 698
699l_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
699l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) { 705l_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");