aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-06 09:41:28 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-06 09:41:28 -0200
commit968ad49da6522c1cf413bd86323a613176d12c07 (patch)
tree6961b75297c9533963f3b2d7db4f06900ed4f9f7 /lua.h
parent1fdb445e7dae6d08b67e46e1979f285b38bbc18d (diff)
downloadlua-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index db251834..f57b0e3d 100644
--- a/lua.h
+++ b/lua.h
@@ -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
33lua_State *lua_newstate (void); 33lua_State *lua_newstate (const char *s, ...);
34void lua_close (lua_State *L); 34void lua_close (lua_State *L);
35 35
36lua_Object lua_settagmethod (lua_State *L, int tag, const char *event); 36lua_Object lua_settagmethod (lua_State *L, int tag, const char *event);
@@ -156,7 +156,7 @@ lua_State *lua_setstate (lua_State *st);
156 156
157extern lua_State *lua_state; 157extern 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)