aboutsummaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
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);