diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-06 09:41:28 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-06 09:41:28 -0200 |
commit | 968ad49da6522c1cf413bd86323a613176d12c07 (patch) | |
tree | 6961b75297c9533963f3b2d7db4f06900ed4f9f7 /lua.h | |
parent | 1fdb445e7dae6d08b67e46e1979f285b38bbc18d (diff) | |
download | lua-968ad49da6522c1cf413bd86323a613176d12c07.tar.gz lua-968ad49da6522c1cf413bd86323a613176d12c07.tar.bz2 lua-968ad49da6522c1cf413bd86323a613176d12c07.zip |
`lua_newstate' gets the inital stack size and other arguments
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.41 1999/11/29 19:31:29 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.42 1999/12/02 16:24:45 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 |
@@ -30,7 +30,7 @@ typedef struct TObject *lua_Object; | |||
30 | #define LUA_NOOBJECT ((lua_Object)0) | 30 | #define LUA_NOOBJECT ((lua_Object)0) |
31 | 31 | ||
32 | 32 | ||
33 | lua_State *lua_newstate (void); | 33 | lua_State *lua_newstate (const char *s, ...); |
34 | void lua_close (lua_State *L); | 34 | void lua_close (lua_State *L); |
35 | 35 | ||
36 | lua_Object lua_settagmethod (lua_State *L, int tag, const char *event); | 36 | lua_Object lua_settagmethod (lua_State *L, int tag, const char *event); |
@@ -156,7 +156,7 @@ lua_State *lua_setstate (lua_State *st); | |||
156 | 156 | ||
157 | extern lua_State *lua_state; | 157 | extern lua_State *lua_state; |
158 | 158 | ||
159 | #define lua_open() ((void)(lua_state?0:(lua_state=lua_newstate()))) | 159 | #define lua_open() ((void)(lua_state?0:(lua_state=lua_newstate(NULL)))) |
160 | 160 | ||
161 | #define lua_close() (lua_close)(lua_state) | 161 | #define lua_close() (lua_close)(lua_state) |
162 | #define lua_setstate(st) (lua_setstate)(lua_state, st) | 162 | #define lua_setstate(st) (lua_setstate)(lua_state, st) |