aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lvm.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lvm.h b/lvm.h
index 0f4bbdad..476bf506 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.h,v 2.10 2009/06/17 16:17:14 roberto Exp roberto $ 2** $Id: lvm.h,v 2.11 2009/06/17 17:51:07 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*/
@@ -13,10 +13,9 @@
13#include "ltm.h" 13#include "ltm.h"
14 14
15 15
16#define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 16#define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
17 17
18#define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 18#define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
19 (((o) = luaV_tonumber(o,n)) != NULL))
20 19
21#define equalobj(L,o1,o2) \ 20#define equalobj(L,o1,o2) \
22 (ttype(o1) == ttype(o2) && luaV_equalval_(L, o1, o2)) 21 (ttype(o1) == ttype(o2) && luaV_equalval_(L, o1, o2))