diff options
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.89 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.90 2001/02/23 17:28:12 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 |
@@ -93,7 +93,7 @@ typedef char l_char; | |||
93 | /* | 93 | /* |
94 | ** state manipulation | 94 | ** state manipulation |
95 | */ | 95 | */ |
96 | LUA_API lua_State *lua_open (lua_State *L, int stacksize); | 96 | LUA_API lua_State *lua_newthread (lua_State *L, int stacksize); |
97 | LUA_API void lua_close (lua_State *L); | 97 | LUA_API void lua_close (lua_State *L); |
98 | 98 | ||
99 | 99 | ||
@@ -210,6 +210,8 @@ LUA_API void *lua_newuserdata (lua_State *L, size_t size); | |||
210 | ** =============================================================== | 210 | ** =============================================================== |
211 | */ | 211 | */ |
212 | 212 | ||
213 | #define lua_open(n) lua_newthread(NULL, (n)) | ||
214 | |||
213 | #define lua_pop(L,n) lua_settop(L, -(n)-1) | 215 | #define lua_pop(L,n) lua_settop(L, -(n)-1) |
214 | 216 | ||
215 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) | 217 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) |