diff options
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.62 2000/08/29 20:43:28 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.63 2000/08/31 14:08:27 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil | 4 | ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil |
5 | ** e-mail: lua@tecgraf.puc-rio.br | 5 | ** e-mail: lua@tecgraf.puc-rio.br |
@@ -62,6 +62,8 @@ void lua_close (lua_State *L); | |||
62 | int lua_gettop (lua_State *L); | 62 | int lua_gettop (lua_State *L); |
63 | void lua_settop (lua_State *L, int index); | 63 | void lua_settop (lua_State *L, int index); |
64 | void lua_pushobject (lua_State *L, int index); | 64 | void lua_pushobject (lua_State *L, int index); |
65 | void lua_move (lua_State *L, int index); | ||
66 | void lua_insert (lua_State *L, int index); | ||
65 | int lua_stackspace (lua_State *L); | 67 | int lua_stackspace (lua_State *L); |
66 | 68 | ||
67 | 69 | ||
@@ -152,6 +154,8 @@ int lua_next (lua_State *L); | |||
152 | ** =============================================================== | 154 | ** =============================================================== |
153 | */ | 155 | */ |
154 | 156 | ||
157 | #define lua_pop(L,n) lua_settop(L, -(n)-1) | ||
158 | |||
155 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) | 159 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) |
156 | #define lua_pushuserdata(L,u) lua_pushusertag(L, u, 0) | 160 | #define lua_pushuserdata(L,u) lua_pushusertag(L, u, 0) |
157 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, f, 0) | 161 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, f, 0) |