Searched refs:ttisnumber (Results 1 – 14 of 14) sorted by relevance
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lobject.h | 130 #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 D | lvm.c | 35 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 D | lvm.h | 18 #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
|
H A D | ltable.c | 127 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 D | ldebug.c | 546 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; in luaG_concaterror() 547 lua_assert(!ttisstring(p1) && !ttisnumber(p1)); in luaG_concaterror()
|
H A D | lapi.c | 304 if (ttisnumber(o1) && ttisnumber(o2)) { in lua_arith()
|
H A D | lcode.c | 297 if (ttisnumber(idx)) { in addk()
|
/freebsd/contrib/lua/src/ |
H A D | lvm.c | 481 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 D | ltm.c | 154 if (ttisnumber(p1) && ttisnumber(p2)) in luaT_trybinTM()
|
H A D | lvm.h | 17 #define cvt2str(o) ttisnumber(o)
|
H A D | lobject.h | 326 #define ttisnumber(o) checktype((o), LUA_TNUMBER) macro 330 #define nvalue(o) check_exp(ttisnumber(o), \
|
H A D | lobject.c | 357 lua_assert(ttisnumber(obj)); in tostringbuff()
|
H A D | ldebug.c | 769 if (!ttisnumber(p1)) /* first operand is wrong? */ in luaG_opinterror()
|
H A D | ltests.c | 1016 ttisnumber(&k)) { in table_query()
|