diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-05 14:48:31 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-05 14:48:31 -0200 |
commit | 5598b2bc558ba0c755068f21e786d3a6d59eb1ca (patch) | |
tree | 497a5239cfeda247eab7bf9c1140184570856089 /lua.h | |
parent | 77077b39d59aa50bd64c7b7c5e660c6e187d11f2 (diff) | |
download | lua-5598b2bc558ba0c755068f21e786d3a6d59eb1ca.tar.gz lua-5598b2bc558ba0c755068f21e786d3a6d59eb1ca.tar.bz2 lua-5598b2bc558ba0c755068f21e786d3a6d59eb1ca.zip |
new functions to identify and join upvalues
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.245 2009/10/05 16:44:33 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.246 2009/10/11 20:02:19 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 |
@@ -380,6 +380,10 @@ LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n); | |||
380 | LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n); | 380 | LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n); |
381 | LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n); | 381 | LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n); |
382 | 382 | ||
383 | LUA_API void *(lua_upvaladdr) (lua_State *L, int fidx, int n); | ||
384 | LUA_API int (lua_upvaljoin) (lua_State *L, int fidx1, int n1, | ||
385 | int fidx2, int n2); | ||
386 | |||
383 | LUA_API int (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); | 387 | LUA_API int (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); |
384 | LUA_API lua_Hook (lua_gethook) (lua_State *L); | 388 | LUA_API lua_Hook (lua_gethook) (lua_State *L); |
385 | LUA_API int (lua_gethookmask) (lua_State *L); | 389 | LUA_API int (lua_gethookmask) (lua_State *L); |