diff options
Diffstat (limited to 'lvm.h')
-rw-r--r-- | lvm.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.h,v 1.40 2002/06/03 14:08:43 roberto Exp roberto $ | 2 | ** $Id: lvm.h,v 1.41 2002/06/12 14:51:31 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -18,8 +18,12 @@ | |||
18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ | 18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ |
19 | (((o) = luaV_tonumber(o,n)) != NULL)) | 19 | (((o) = luaV_tonumber(o,n)) != NULL)) |
20 | 20 | ||
21 | #define equalobj(L,o1,o2) \ | ||
22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) | ||
23 | |||
21 | 24 | ||
22 | int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r); | 25 | int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r); |
26 | int luaV_equalval (lua_State *L, const TObject *t1, const TObject *t2); | ||
23 | const TObject *luaV_tonumber (const TObject *obj, TObject *n); | 27 | const TObject *luaV_tonumber (const TObject *obj, TObject *n); |
24 | int luaV_tostring (lua_State *L, TObject *obj); | 28 | int luaV_tostring (lua_State *L, TObject *obj); |
25 | void luaV_gettable (lua_State *L, const TObject *t, TObject *key, StkId res); | 29 | void luaV_gettable (lua_State *L, const TObject *t, TObject *key, StkId res); |