From 6d04537ea660fd12fc16c328366b701fabaf4919 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 29 Nov 2018 16:02:44 -0200 Subject: 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.) --- ldebug.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index f080711d..1fe0efab 100644 --- a/ldebug.h +++ b/ldebug.h @@ -22,6 +22,8 @@ #define ABSLINEINFO (-0x80) LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); +LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, + StkId *pos); 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, -- cgit v1.2.3-55-g6feb