summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index d4af8569..28dbe092 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.324 2014/12/08 15:12:07 roberto Exp roberto $ 2** $Id: lua.h,v 1.325 2014/12/26 17:24:27 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -35,9 +35,11 @@
35 35
36 36
37/* 37/*
38** pseudo-indices 38** Pseudo-indices
39** (-LUAI_MAXSTACK is the minimum valid index; we keep some free empty
40** space after that to help overflow detection)
39*/ 41*/
40#define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX 42#define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000)
41#define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) 43#define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i))
42 44
43 45