Home
last modified time | relevance | path

Searched refs:ttisnumber (Results 1 – 14 of 14) sorted by relevance

/freebsd/sys/contrib/openzfs/module/lua/
H A Dlobject.h130 #define ttisnumber(o) checktag((o), LUA_TNUMBER) macro
150 #define nvalue(o) check_exp(ttisnumber(o), num_(o))
334 #undef ttisnumber
335 #define ttisnumber(o) ((tt_(o) & NNMASK) != NNMARK) macro
340 #define rttype(o) (ttisnumber(o) ? LUA_TNUMBER : tt_(o) & 0xff)
347 { TValue *io_=(obj); num_(io_)=(x); lua_assert(ttisnumber(io_)); }
367 (ttisnumber(o1) ? ttisnumber(o2) : (tt_(o1) == tt_(o2)))
371 #define luai_checknum(L,o,c) { if (!ttisnumber(o)) c; }
H A Dlvm.c35 if (ttisnumber(obj)) return obj; in luaV_tonumber()
46 if (!ttisnumber(obj)) in luaV_tostring()
233 if (ttisnumber(l) && ttisnumber(r)) in luaV_lessthan()
245 if (ttisnumber(l) && ttisnumber(r)) in luaV_lessequal()
298 if (!(ttisstring(top-2) || ttisnumber(top-2)) || !tostring(L, top-1)) { in luaV_concat()
583 if (ttisnumber(rb) && ttisnumber(rc)) { \
700 if (ttisnumber(rb)) { in luaV_execute()
H A Dlvm.h18 #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
H A Dltable.c127 if (ttisnumber(key)) { in arrayindex()
408 else if (ttisnumber(key) && luai_numisnan(L, nvalue(key))) in luaH_newkey()
455 if (ttisnumber(gkey(n)) && luai_numeq(nvalue(gkey(n)), nk)) in luaH_getint()
H A Dldebug.c546 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; in luaG_concaterror()
547 lua_assert(!ttisstring(p1) && !ttisnumber(p1)); in luaG_concaterror()
H A Dlapi.c304 if (ttisnumber(o1) && ttisnumber(o2)) { in lua_arith()
H A Dlcode.c297 if (ttisnumber(idx)) { in addk()
/freebsd/contrib/lua/src/
H A Dlvm.c481 lua_assert(ttisnumber(l) && ttisnumber(r)); in LTnum()
503 lua_assert(ttisnumber(l) && ttisnumber(r)); in LEnum()
525 lua_assert(!ttisnumber(l) || !ttisnumber(r)); in lessthanothers()
537 if (ttisnumber(l) && ttisnumber(r)) /* both operands are numbers? */ in luaV_lessthan()
547 lua_assert(!ttisnumber(l) || !ttisnumber(r)); in lessequalothers()
559 if (ttisnumber(l) && ttisnumber(r)) /* both operands are numbers? */ in luaV_lessequal()
946 TValue *v2 = KC(i); lua_assert(ttisnumber(v2)); \
976 TValue *v2 = KC(i); lua_assert(ttisnumber(v2)); \
1021 else if (ttisnumber(s2v(ra)) && ttisnumber(rb)) \
H A Dltm.c154 if (ttisnumber(p1) && ttisnumber(p2)) in luaT_trybinTM()
H A Dlvm.h17 #define cvt2str(o) ttisnumber(o)
H A Dlobject.h326 #define ttisnumber(o) checktype((o), LUA_TNUMBER) macro
330 #define nvalue(o) check_exp(ttisnumber(o), \
H A Dlobject.c357 lua_assert(ttisnumber(obj)); in tostringbuff()
H A Dldebug.c769 if (!ttisnumber(p1)) /* first operand is wrong? */ in luaG_opinterror()
H A Dltests.c1016 ttisnumber(&k)) { in table_query()