From 965f74525b10de3b0c0c1f0a1eef5141e66da8c6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 Jan 2015 17:50:30 -0200 Subject: removed macro LUAI_FIRSTPSEUDOIDX (that stuff does not need to be configurable) --- lua.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index d4af8569..28dbe092 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.324 2014/12/08 15:12:07 roberto Exp roberto $ +** $Id: lua.h,v 1.325 2014/12/26 17:24:27 roberto Exp roberto $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file @@ -35,9 +35,11 @@ /* -** pseudo-indices +** Pseudo-indices +** (-LUAI_MAXSTACK is the minimum valid index; we keep some free empty +** space after that to help overflow detection) */ -#define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX +#define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) -- cgit v1.2.3-55-g6feb