new API function 'lua_absindex'

This commit is contained in:
Roberto Ierusalimschy
2010-05-12 11:09:20 -03:00
parent 4fd76b8148
commit e924a7f9ea
3 changed files with 19 additions and 13 deletions

3
lua.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.268 2010/04/14 15:14:21 roberto Exp roberto $
** $Id: lua.h,v 1.269 2010/05/10 13:50:20 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
@@ -129,6 +129,7 @@ LUA_API const lua_Number *(lua_version) (lua_State *L);
/*
** basic stack manipulation
*/
LUA_API int (lua_absindex) (lua_State *L, int idx);
LUA_API int (lua_gettop) (lua_State *L);
LUA_API void (lua_settop) (lua_State *L, int idx);
LUA_API void (lua_pushvalue) (lua_State *L, int idx);