diff options
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.53 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.54 2000/05/26 19:17:57 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 |
| @@ -39,7 +39,7 @@ typedef struct lua_TObject *lua_Object; | |||
| 39 | #define LUA_NOOBJECT ((lua_Object)0) | 39 | #define LUA_NOOBJECT ((lua_Object)0) |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | lua_State *lua_newstate (const char *s, ...); | 42 | lua_State *lua_newstate (int stacksize, int builtin); |
| 43 | void lua_close (lua_State *L); | 43 | void lua_close (lua_State *L); |
| 44 | 44 | ||
| 45 | lua_Object lua_settagmethod (lua_State *L, int tag, const char *event); | 45 | lua_Object lua_settagmethod (lua_State *L, int tag, const char *event); |
| @@ -162,7 +162,7 @@ long lua_collectgarbage (lua_State *L, long limit); | |||
| 162 | 162 | ||
| 163 | extern lua_State *lua_state; | 163 | extern lua_State *lua_state; |
| 164 | 164 | ||
| 165 | #define lua_open() ((void)(lua_state?0:(lua_state=lua_newstate(0)))) | 165 | #define lua_open() ((void)(lua_state?0:(lua_state=lua_newstate(0, 1)))) |
| 166 | 166 | ||
| 167 | #define lua_close() (lua_close)(lua_state) | 167 | #define lua_close() (lua_close)(lua_state) |
| 168 | #define lua_settagmethod(tag,event) (lua_settagmethod)(lua_state, tag,event) | 168 | #define lua_settagmethod(tag,event) (lua_settagmethod)(lua_state, tag,event) |
