diff options
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); |