aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-02 14:24:45 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-02 14:24:45 -0200
commit8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4 (patch)
tree94d59b8fcc1845002f8972f46069140cee7079c0 /lua.h
parentfe237ad8085f34e89fcd3610a9771215af63f03f (diff)
downloadlua-8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4.tar.gz
lua-8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4.tar.bz2
lua-8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4.zip
lua_Object is a pointer to the stack (because now the stack doen't move)
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lua.h b/lua.h
index 27953d28..db251834 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.40 1999/11/29 19:11:36 roberto Exp roberto $ 2** $Id: lua.h,v 1.41 1999/11/29 19:31:29 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
@@ -16,8 +16,6 @@
16#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" 16#define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
17 17
18 18
19#define LUA_NOOBJECT 0
20
21#define LUA_NOREF (-2) 19#define LUA_NOREF (-2)
22#define LUA_REFNIL (-1) 20#define LUA_REFNIL (-1)
23 21
@@ -26,7 +24,11 @@
26typedef struct lua_State lua_State; 24typedef struct lua_State lua_State;
27 25
28typedef void (*lua_CFunction) ( /* lua_State *L */ ); 26typedef void (*lua_CFunction) ( /* lua_State *L */ );
29typedef unsigned int lua_Object; 27
28typedef struct TObject *lua_Object;
29
30#define LUA_NOOBJECT ((lua_Object)0)
31
30 32
31lua_State *lua_newstate (void); 33lua_State *lua_newstate (void);
32void lua_close (lua_State *L); 34void lua_close (lua_State *L);