From 8352335c745eb7053cdc39d949b036f90724a0fb Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 20 Sep 2012 17:36:15 +0200 Subject: From Lua 5.2: Add debug.upvalueid() and debug.upvaluejoin(). Ditto for lua_upvalueid() and lua_upvaluejoin(). --- src/lua.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lua.h') diff --git a/src/lua.h b/src/lua.h index 0e98b374..9e9357a8 100644 --- a/src/lua.h +++ b/src/lua.h @@ -336,12 +336,15 @@ LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n); LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n); LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n); LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n); - LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count); LUA_API lua_Hook lua_gethook (lua_State *L); LUA_API int lua_gethookmask (lua_State *L); LUA_API int lua_gethookcount (lua_State *L); +/* From Lua 5.2. */ +LUA_API void *lua_upvalueid (lua_State *L, int idx, int n); +LUA_API void lua_upvaluejoin (lua_State *L, int idx1, int n1, int idx2, int n2); + struct lua_Debug { int event; -- cgit v1.2.3-55-g6feb