aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
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 577e41c6..b6bd9305 100644
--- a/lua.h
+++ b/lua.h
@@ -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
42lua_State *lua_newstate (const char *s, ...); 42lua_State *lua_newstate (int stacksize, int builtin);
43void lua_close (lua_State *L); 43void lua_close (lua_State *L);
44 44
45lua_Object lua_settagmethod (lua_State *L, int tag, const char *event); 45lua_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
163extern lua_State *lua_state; 163extern 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)