aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-10-30 15:46:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-10-30 15:46:56 -0300
commite073cbc2e538369e0611abfc9948f301aea6aef3 (patch)
tree6ef30a285092e8bcc15021b1d857a62dbab36fd6 /ldebug.h
parent2316ec4c24a475e091ec3153a5bd908801a3a109 (diff)
downloadlua-e073cbc2e538369e0611abfc9948f301aea6aef3.tar.gz
lua-e073cbc2e538369e0611abfc9948f301aea6aef3.tar.bz2
lua-e073cbc2e538369e0611abfc9948f301aea6aef3.zip
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)
Diffstat (limited to 'ldebug.h')
-rw-r--r--ldebug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldebug.h b/ldebug.h
index 31ecc2f6..f080711d 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -24,6 +24,8 @@
24LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); 24LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
25LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 25LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
26 const char *opname); 26 const char *opname);
27LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
28 const char *what);
27LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, 29LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
28 const TValue *p2); 30 const TValue *p2);
29LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, 31LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,