diff options
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)) |