This commit is contained in:
Roberto Ierusalimschy
2002-02-07 15:24:05 -02:00
parent 7c8f1823e7
commit 67bda7e136
2 changed files with 12 additions and 12 deletions

4
lvm.h
View File

@@ -13,7 +13,9 @@
#include "ltm.h"
#define tostring(L,o) ((ttype(o) != LUA_TSTRING) && (luaV_tostring(L, o) != 0))
#define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
#define tonumber(o,n) (((o) = luaV_tonumber(o,n)) != NULL)
const TObject *luaV_tonumber (const TObject *obj, TObject *n);