Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/module/lua/
H A Dldebug.c326 if (ttisstring(kvalue)) { /* literal constant? */ in kname()
440 if (ttisstring(&p->k[b])) { in getobjname()
546 if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; in luaG_concaterror()
547 lua_assert(!ttisstring(p1) && !ttisnumber(p1)); in luaG_concaterror()
H A Dlvm.h17 #define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
H A Dlvm.c37 if (ttisstring(obj) && luaO_str2d(svalue(obj), tsvalue(obj)->len, &num)) { in luaV_tonumber()
236 else if (ttisstring(l) && ttisstring(r)) in luaV_lessthan()
248 else if (ttisstring(l) && ttisstring(r)) in luaV_lessequal()
299 if (!(ttisstring(top-2) || ttisnumber(top-2)) || !tostring(L, top-1)) { in luaV_concat()
305 else if (ttisstring(top-2) && tsvalue(top-2)->len == 0) { in luaV_concat()
H A Dlobject.h135 #define ttisstring(o) checktype((o), LUA_TSTRING) macro
154 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts)
H A Dlgc.c122 else if (ttisstring(o)) { in iscleared()
437 if (mode && ttisstring(mode) && /* is there a weak mode? */ in traversetable()
828 const char *msg = (ttisstring(L->top - 1)) in GCTM()
H A Dlapi.c388 if (!ttisstring(o)) { in lua_tolstring()
/freebsd-13.1/contrib/lua/src/
H A Dlvm.h24 #define cvt2num(o) ttisstring(o)
H A Dldebug.c432 *name = (ttisstring(kvalue)) ? svalue(kvalue) : "?"; in kname()
574 if (ttisstring(&p->k[b])) { in getobjname()
707 if (ttisstring(p1) || cvt2str(p1)) p1 = p2; in luaG_concaterror()
H A Dlvm.c532 if (ttisstring(l) && ttisstring(r)) /* both are strings? */ in lessthanothers()
554 if (ttisstring(l) && ttisstring(r)) /* both are strings? */ in lessequalothers()
624 (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1)))
649 if (!(ttisstring(s2v(top - 2)) || cvt2str(s2v(top - 2))) || in luaV_concat()
H A Dlobject.h341 #define ttisstring(o) checktype((o), LUA_TSTRING) macro
347 #define tsvalue(o) check_exp(ttisstring(o), gco2ts(val_(o).gc))
H A Dltm.c96 if (ttisstring(name)) /* is '__name' a string? */ in luaT_objtypename()
H A Dlstate.c424 const char *msg = (ttisstring(errobj)) in luaE_warnerror()
H A Dlapi.c294 return (ttisstring(o) || cvt2str(o)); in lua_isstring()
385 if (!ttisstring(o)) { in lua_tolstring()
H A Dlgc.c540 if (mode && ttisstring(mode) && /* is there a weak mode? */ in traversetable()