From e073cbc2e538369e0611abfc9948f301aea6aef3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 30 Oct 2018 15:46:56 -0300 Subject: Better error messages for invalid operands in numeric 'for' "Better" and similar to error messages for invalid function arguments. *old message: 'for' limit must be a number *new message: bad 'for' limit (number expected, got table) --- ldebug.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index 31ecc2f6..f080711d 100644 --- a/ldebug.h +++ b/ldebug.h @@ -24,6 +24,8 @@ LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *opname); +LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, + const char *what); LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2); LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, -- cgit v1.2.3-55-g6feb