summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-26 17:58:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-26 17:58:11 -0300
commit064e406f67c0153999a5246deb1d616b06ee9bb0 (patch)
treef4483ab6ad6d55484829a0d8a27b8afa1768a36e /lua.h
parent5c87f61e6b1567400d2bd8f452939bb948f16dda (diff)
downloadlua-064e406f67c0153999a5246deb1d616b06ee9bb0.tar.gz
lua-064e406f67c0153999a5246deb1d616b06ee9bb0.tar.bz2
lua-064e406f67c0153999a5246deb1d616b06ee9bb0.zip
no more fenvs!
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index a0f909a5..0b3aa587 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.263 2010/03/19 21:04:17 roberto Exp roberto $ 2** $Id: lua.h,v 1.264 2010/03/22 18:28:03 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
@@ -34,8 +34,7 @@
34** pseudo-indices 34** pseudo-indices
35*/ 35*/
36#define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX 36#define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX
37#define LUA_ENVIRONINDEX (LUA_REGISTRYINDEX - 1) 37#define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i))
38#define lua_upvalueindex(i) (LUA_ENVIRONINDEX - (i))
39 38
40 39
41/* thread status */ 40/* thread status */
@@ -212,7 +211,7 @@ LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n);
212LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); 211LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec);
213LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); 212LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
214LUA_API int (lua_getmetatable) (lua_State *L, int objindex); 213LUA_API int (lua_getmetatable) (lua_State *L, int objindex);
215LUA_API void (lua_getfenv) (lua_State *L, int idx); 214LUA_API void (lua_getenv) (lua_State *L, int idx);
216 215
217 216
218/* 217/*
@@ -223,7 +222,7 @@ LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k);
223LUA_API void (lua_rawset) (lua_State *L, int idx); 222LUA_API void (lua_rawset) (lua_State *L, int idx);
224LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); 223LUA_API void (lua_rawseti) (lua_State *L, int idx, int n);
225LUA_API int (lua_setmetatable) (lua_State *L, int objindex); 224LUA_API int (lua_setmetatable) (lua_State *L, int objindex);
226LUA_API int (lua_setfenv) (lua_State *L, int idx); 225LUA_API void (lua_setenv) (lua_State *L, int idx);
227 226
228 227
229/* 228/*