diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-29 16:02:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-29 16:02:44 -0200 |
commit | 6d04537ea660fd12fc16c328366b701fabaf4919 (patch) | |
tree | 41eab6e4d87552e29731db552f7d58d679c56973 /ldebug.h | |
parent | 7696c6474fe51ed59fee324e78c1233af74febdd (diff) | |
download | lua-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -22,6 +22,8 @@ | |||
22 | #define ABSLINEINFO (-0x80) | 22 | #define ABSLINEINFO (-0x80) |
23 | 23 | ||
24 | LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); | 24 | LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); |
25 | LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, | ||
26 | StkId *pos); | ||
25 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, | 27 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, |
26 | const char *opname); | 28 | const char *opname); |
27 | LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, | 29 | LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, |