aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-29 13:15:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-29 13:15:54 -0300
commit4bd10b6fe81c0a56eb9e01e24fba10e655966870 (patch)
treeff21703d9f06a0dd4ca4f3317dd0cb7b048c9b8d /ldebug.h
parent59e565d9555c07e82808d8c1db8f4f4d159b5e5c (diff)
downloadlua-4bd10b6fe81c0a56eb9e01e24fba10e655966870.tar.gz
lua-4bd10b6fe81c0a56eb9e01e24fba10e655966870.tar.bz2
lua-4bd10b6fe81c0a56eb9e01e24fba10e655966870.zip
Better error messages for calling non-callable objects
When available, use the calling code to find a suitable name for what was being called; this is particularly useful for errors of non-callable metamethods. This commit also improved the debug information for order metamethods.
Diffstat (limited to 'ldebug.h')
-rw-r--r--ldebug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldebug.h b/ldebug.h
index a0a58486..55b3ae09 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -31,6 +31,7 @@ LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
31 StkId *pos); 31 StkId *pos);
32LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 32LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
33 const char *opname); 33 const char *opname);
34LUAI_FUNC l_noret luaG_callerror (lua_State *L, const TValue *o);
34LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, 35LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
35 const char *what); 36 const char *what);
36LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, 37LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,