diff options
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.34 1999/08/16 20:52:00 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.35 1999/09/29 12:56:22 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 |
@@ -58,6 +58,8 @@ lua_Object lua_lua2C (int number); | |||
58 | #define lua_getparam(_) lua_lua2C(_) | 58 | #define lua_getparam(_) lua_lua2C(_) |
59 | #define lua_getresult(_) lua_lua2C(_) | 59 | #define lua_getresult(_) lua_lua2C(_) |
60 | 60 | ||
61 | const char *lua_type (lua_Object object); | ||
62 | |||
61 | int lua_isnil (lua_Object object); | 63 | int lua_isnil (lua_Object object); |
62 | int lua_istable (lua_Object object); | 64 | int lua_istable (lua_Object object); |
63 | int lua_isuserdata (lua_Object object); | 65 | int lua_isuserdata (lua_Object object); |
@@ -136,10 +138,8 @@ lua_Object lua_seterrormethod (void); /* In: new method */ | |||
136 | #ifdef LUA_COMPAT2_5 | 138 | #ifdef LUA_COMPAT2_5 |
137 | 139 | ||
138 | 140 | ||
139 | lua_Object lua_setfallback (char *event, lua_CFunction fallback); | ||
140 | 141 | ||
141 | #define lua_storeglobal lua_setglobal | 142 | #define lua_storeglobal lua_setglobal |
142 | #define lua_type lua_tag | ||
143 | 143 | ||
144 | #define lua_lockobject(o) lua_refobject(o,1) | 144 | #define lua_lockobject(o) lua_refobject(o,1) |
145 | #define lua_lock() lua_ref(1) | 145 | #define lua_lock() lua_ref(1) |
@@ -152,8 +152,6 @@ lua_Object lua_setfallback (char *event, lua_CFunction fallback); | |||
152 | #define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_gettable()) | 152 | #define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_gettable()) |
153 | #define lua_getfield(o,f) (lua_pushobject(o), lua_pushstring(f), lua_gettable()) | 153 | #define lua_getfield(o,f) (lua_pushobject(o), lua_pushstring(f), lua_gettable()) |
154 | 154 | ||
155 | #define lua_copystring(o) (strdup(lua_getstring(o))) | ||
156 | |||
157 | #define lua_getsubscript lua_gettable | 155 | #define lua_getsubscript lua_gettable |
158 | #define lua_storesubscript lua_settable | 156 | #define lua_storesubscript lua_settable |
159 | 157 | ||