diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-24 17:12:06 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-24 17:12:06 -0200 |
commit | cdc8139e295a768ac581e0a7c784c1adfee0668b (patch) | |
tree | e1c4bd9160e5877ee6b61857d7ddbc33f78cff18 /lua.h | |
parent | e833bd47c9c48f3235097b85f0e45f79ab5c00dd (diff) | |
download | lua-cdc8139e295a768ac581e0a7c784c1adfee0668b.tar.gz lua-cdc8139e295a768ac581e0a7c784c1adfee0668b.tar.bz2 lua-cdc8139e295a768ac581e0a7c784c1adfee0668b.zip |
registry mechanism
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.74 2000/10/09 15:46:43 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.75 2000/10/20 16:39:03 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 |
@@ -29,12 +29,16 @@ | |||
29 | #define LUA_ERRORMESSAGE "_ERRORMESSAGE" | 29 | #define LUA_ERRORMESSAGE "_ERRORMESSAGE" |
30 | 30 | ||
31 | 31 | ||
32 | /* pre-defined references */ | ||
32 | #define LUA_NOREF (-2) | 33 | #define LUA_NOREF (-2) |
33 | #define LUA_REFNIL (-1) | 34 | #define LUA_REFNIL (-1) |
35 | #define LUA_REFREGISTRY 0 | ||
34 | 36 | ||
37 | /* pre-defined tags */ | ||
35 | #define LUA_ANYTAG (-1) | 38 | #define LUA_ANYTAG (-1) |
36 | #define LUA_NOTAG (-2) | 39 | #define LUA_NOTAG (-2) |
37 | 40 | ||
41 | |||
38 | #define LUA_MULTRET (-1) | 42 | #define LUA_MULTRET (-1) |
39 | 43 | ||
40 | 44 | ||
@@ -198,6 +202,8 @@ LUA_API void lua_concat (lua_State *L, int n); | |||
198 | #define lua_isnil(L,n) (lua_type(L,n) == LUA_TNIL) | 202 | #define lua_isnil(L,n) (lua_type(L,n) == LUA_TNIL) |
199 | #define lua_isnull(L,n) (lua_type(L,n) == LUA_TNONE) | 203 | #define lua_isnull(L,n) (lua_type(L,n) == LUA_TNONE) |
200 | 204 | ||
205 | #define lua_getregistry(L) lua_getref(L, LUA_REFREGISTRY) | ||
206 | |||
201 | #endif | 207 | #endif |
202 | 208 | ||
203 | 209 | ||