aboutsummaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-29 16:02:44 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-29 16:02:44 -0200
commit6d04537ea660fd12fc16c328366b701fabaf4919 (patch)
tree41eab6e4d87552e29731db552f7d58d679c56973 /ldebug.h
parent7696c6474fe51ed59fee324e78c1233af74febdd (diff)
downloadlua-6d04537ea660fd12fc16c328366b701fabaf4919.tar.gz
lua-6d04537ea660fd12fc16c328366b701fabaf4919.tar.bz2
lua-6d04537ea660fd12fc16c328366b701fabaf4919.zip
A to-be-closed variable must have a closable value (or be nil)
It is an error for a to-be-closed variable to have a non-closable non-nil value when it is being closed. This situation does not seem to be useful and often hints to an error. (Particularly in the C API, it is easy to change a to-be-closed index by mistake.)
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 f080711d..1fe0efab 100644
--- a/ldebug.h
+++ b/ldebug.h
@@ -22,6 +22,8 @@
22#define ABSLINEINFO (-0x80) 22#define ABSLINEINFO (-0x80)
23 23
24LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); 24LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
25LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
26 StkId *pos);
25LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 27LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
26 const char *opname); 28 const char *opname);
27LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, 29LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,