Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/openzfs/module/lua/
H A Dlobject.h131 #define ttisnumber(o) checktag((o), LUA_TNUMBER) macro
151 #define nvalue(o) check_exp(ttisnumber(o), num_(o))
335 #undef ttisnumber
336 #define ttisnumber(o) ((tt_(o) & NNMASK) != NNMARK) macro
341 #define rttype(o) (ttisnumber(o) ? LUA_TNUMBER : tt_(o) & 0xff)
348 { TValue *io_=(obj); num_(io_)=(x); lua_assert(ttisnumber(io_)); }
368 (ttisnumber(o1) ? ttisnumber(o2) : (tt_(o1) == tt_(o2)))
372 #define luai_checknum(L,o,c) { if (!ttisnumber(o)) c; }
H A Dlvm.c36 if (ttisnumber(obj)) return obj; in luaV_tonumber()
47 if (!ttisnumber(obj)) in luaV_tostring()
234 if (ttisnumber(l) && ttisnumber(r)) in luaV_lessthan()
246 if (ttisnumber(l) && ttisnumber(r)) in luaV_lessequal()
299 if (!(ttisstring(top-2) || ttisnumber(top-2)) || !tostring(L, top-1)) { in luaV_concat()
584 if (ttisnumber(rb) && ttisnumber(rc)) { \
701 if (ttisnumber(rb)) { in luaV_execute()
H A Dlvm.h19 #define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
H A Dltable.c128 if (ttisnumber(key)) { in arrayindex()
409 else if (ttisnumber(key) && luai_numisnan(L, nvalue(key))) in luaH_newkey()
456 if (ttisnumber(gkey(n)) && luai_numeq(nvalue(gkey(n)), nk)) in luaH_getint()
H A Dldebug.c547 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; in luaG_concaterror()
548 lua_assert(!ttisstring(p1) && !ttisnumber(p1)); in luaG_concaterror()
H A Dlapi.c303 if (ttisnumber(o1) && ttisnumber(o2)) { in lua_arith()
H A Dlcode.c294 if (ttisnumber(idx)) { in addk()
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlvm.c37 if (ttisnumber(obj)) return obj; in luaV_tonumber()
48 if (!ttisnumber(obj)) in luaV_tostring()
229 else if (ttisnumber(l)) in luaV_lessthan()
243 else if (ttisnumber(l)) in lessequal()
286 if (!(ttisstring(top-2) || ttisnumber(top-2)) || !tostring(L, top-1)) { in luaV_concat()
367 if (ttisnumber(rb) && ttisnumber(rc)) { \
500 if (ttisnumber(rb)) { in luaV_execute()
H A Dlobject.h80 #define ttisnumber(o) (ttype(o) == LUA_TNUMBER) macro
93 #define nvalue(o) check_exp(ttisnumber(o), (o)->value.n)
H A Dltable.c121 if (ttisnumber(key)) { in arrayindex()
443 if (ttisnumber(gkey(n)) && luai_numeq(nvalue(gkey(n)), nk)) in luaH_getnum()
501 else if (ttisnumber(key) && luai_numisnan(nvalue(key))) in luaH_set()
H A Dldebug.c582 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; in luaG_concaterror()
583 lua_assert(!ttisstring(p1) && !ttisnumber(p1)); in luaG_concaterror()
H A Dlcode.c234 if (ttisnumber(idx)) { in addk()