summaryrefslogtreecommitdiff
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 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)