diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-02 14:24:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-02 14:24:45 -0200 |
commit | 8223ff473f3ffe782629fb1ba9ce1f96efeb7fd4 (patch) | |
tree | 94d59b8fcc1845002f8972f46069140cee7079c0 /lua.h | |
parent | fe237ad8085f34e89fcd3610a9771215af63f03f (diff) | |
download | lua-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.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 @@ | |||
26 | typedef struct lua_State lua_State; | 24 | typedef struct lua_State lua_State; |
27 | 25 | ||
28 | typedef void (*lua_CFunction) ( /* lua_State *L */ ); | 26 | typedef void (*lua_CFunction) ( /* lua_State *L */ ); |
29 | typedef unsigned int lua_Object; | 27 | |
28 | typedef struct TObject *lua_Object; | ||
29 | |||
30 | #define LUA_NOOBJECT ((lua_Object)0) | ||
31 | |||
30 | 32 | ||
31 | lua_State *lua_newstate (void); | 33 | lua_State *lua_newstate (void); |
32 | void lua_close (lua_State *L); | 34 | void lua_close (lua_State *L); |