diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-07 15:24:05 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-07 15:24:05 -0200 |
commit | 67bda7e1363eefaa07e5f60d2745feb1aad6f4b5 (patch) | |
tree | 071bb0e7bffd47afa787f377b4d4f1dd118f2625 /lvm.h | |
parent | 7c8f1823e7590cf97d1002d48a7bd233136bedcb (diff) | |
download | lua-67bda7e1363eefaa07e5f60d2745feb1aad6f4b5.tar.gz lua-67bda7e1363eefaa07e5f60d2745feb1aad6f4b5.tar.bz2 lua-67bda7e1363eefaa07e5f60d2745feb1aad6f4b5.zip |
details.
Diffstat (limited to 'lvm.h')
-rw-r--r-- | lvm.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 | ||
19 | const TObject *luaV_tonumber (const TObject *obj, TObject *n); | 21 | const TObject *luaV_tonumber (const TObject *obj, TObject *n); |