summaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-02-07 15:24:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-02-07 15:24:05 -0200
commit67bda7e1363eefaa07e5f60d2745feb1aad6f4b5 (patch)
tree071bb0e7bffd47afa787f377b4d4f1dd118f2625 /lvm.h
parent7c8f1823e7590cf97d1002d48a7bd233136bedcb (diff)
downloadlua-67bda7e1363eefaa07e5f60d2745feb1aad6f4b5.tar.gz
lua-67bda7e1363eefaa07e5f60d2745feb1aad6f4b5.tar.bz2
lua-67bda7e1363eefaa07e5f60d2745feb1aad6f4b5.zip
details.
Diffstat (limited to 'lvm.h')
-rw-r--r--lvm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lvm.h b/lvm.h
index b69c5411..a58e8315 100644
--- a/lvm.h
+++ b/lvm.h
@@ -13,7 +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) != 0)) 16#define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
17
18#define tonumber(o,n) (((o) = luaV_tonumber(o,n)) != NULL)
17 19
18 20
19const TObject *luaV_tonumber (const TObject *obj, TObject *n); 21const TObject *luaV_tonumber (const TObject *obj, TObject *n);