From d56d4cf776b2a874e35d7a92c506840f4a2051b6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Jan 2002 18:26:52 -0200 Subject: distinct functions to create/destroy states and threads --- lua.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index 0a2f5b10..89b5818d 100644 --- a/lua.h +++ b/lua.h @@ -94,8 +94,10 @@ typedef LUA_NUMBER lua_Number; /* ** state manipulation */ -LUA_API lua_State *lua_newthread (lua_State *L, int stacksize); +LUA_API lua_State *lua_open (int stacksize); LUA_API void lua_close (lua_State *L); +LUA_API lua_State *lua_newthread (lua_State *L, int stacksize); +LUA_API void lua_closethread (lua_State *L, lua_State *thread); /* @@ -215,8 +217,6 @@ LUA_API void lua_newuserdatabox (lua_State *L, void *u); ** =============================================================== */ -#define lua_open(n) lua_newthread(NULL, (n)) - #define lua_pop(L,n) lua_settop(L, -(n)-1) #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) -- cgit v1.2.3-55-g6feb