aboutsummaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/lvm.h b/lvm.h
index 911f0e97..365e4a48 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.h,v 2.17 2011/05/31 18:27:56 roberto Exp roberto $ 2** $Id: lvm.h,v 2.17 2011/05/31 18:27:56 roberto Exp $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -15,17 +15,13 @@
15 15
16#define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o))) 16#define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
17 17
18#define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) 18#define tonumber(o,n) (ttisfloat(o) || (((o) = luaV_tonumber(o,n)) != NULL))
19 19
20#define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalobj_(L, o1, o2))
21 20
22#define luaV_rawequalobj(o1,o2) equalobj(NULL,o1,o2) 21#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2)
23
24
25/* not to called directly */
26LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
27 22
28 23
24LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
29LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 25LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
30LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 26LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
31LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 27LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);