diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-11 18:26:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-11 18:26:52 -0200 |
commit | d56d4cf776b2a874e35d7a92c506840f4a2051b6 (patch) | |
tree | 873e9d729b589749aa207916dd1c42843154ce63 /lua.h | |
parent | b7ae43d457ca7b5a46ca768f482b334d70897a14 (diff) | |
download | lua-d56d4cf776b2a874e35d7a92c506840f4a2051b6.tar.gz lua-d56d4cf776b2a874e35d7a92c506840f4a2051b6.tar.bz2 lua-d56d4cf776b2a874e35d7a92c506840f4a2051b6.zip |
distinct functions to create/destroy states and threads
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -94,8 +94,10 @@ typedef LUA_NUMBER lua_Number; | |||
94 | /* | 94 | /* |
95 | ** state manipulation | 95 | ** state manipulation |
96 | */ | 96 | */ |
97 | LUA_API lua_State *lua_newthread (lua_State *L, int stacksize); | 97 | LUA_API lua_State *lua_open (int stacksize); |
98 | LUA_API void lua_close (lua_State *L); | 98 | LUA_API void lua_close (lua_State *L); |
99 | LUA_API lua_State *lua_newthread (lua_State *L, int stacksize); | ||
100 | LUA_API void lua_closethread (lua_State *L, lua_State *thread); | ||
99 | 101 | ||
100 | 102 | ||
101 | /* | 103 | /* |
@@ -215,8 +217,6 @@ LUA_API void lua_newuserdatabox (lua_State *L, void *u); | |||
215 | ** =============================================================== | 217 | ** =============================================================== |
216 | */ | 218 | */ |
217 | 219 | ||
218 | #define lua_open(n) lua_newthread(NULL, (n)) | ||
219 | |||
220 | #define lua_pop(L,n) lua_settop(L, -(n)-1) | 220 | #define lua_pop(L,n) lua_settop(L, -(n)-1) |
221 | 221 | ||
222 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) | 222 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) |