aboutsummaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lvm.h b/lvm.h
index 07235f19..9d0d66ca 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.h,v 2.19 2013/04/15 15:44:46 roberto Exp roberto $ 2** $Id: lvm.h,v 2.20 2013/04/25 19:12:41 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*/
@@ -15,7 +15,8 @@
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) (ttisfloat(o) || (((o) = luaV_tonumber(o,n)) != NULL)) 18#define tonumber(o,n) \
19 (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n))
19 20
20 21
21#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2) 22#define luaV_rawequalobj(t1,t2) luaV_equalobj(NULL,t1,t2)
@@ -24,7 +25,7 @@
24LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2); 25LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
25LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 26LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
26LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 27LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
27LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 28LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n);
28LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 29LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
29LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 30LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
30 StkId val); 31 StkId val);