diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-09 15:05:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-09 15:05:05 -0300 |
commit | cb49b088b61b75b905663a58a2c545de1ffea13a (patch) | |
tree | 6eee74cd799d2aebfc8846501f41009afe00c647 /lua.h | |
parent | c5a23cf01aca02a8a8d0ee5f5f558f74b31ded89 (diff) | |
download | lua-cb49b088b61b75b905663a58a2c545de1ffea13a.tar.gz lua-cb49b088b61b75b905663a58a2c545de1ffea13a.tar.bz2 lua-cb49b088b61b75b905663a58a2c545de1ffea13a.zip |
old signature for lua_open
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)) |