Home
last modified time | relevance | path

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

/freebsd/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.c36 if (ttisstring(obj) && luaO_str2d(svalue(obj), tsvalue(obj)->len, &num)) { in luaV_tonumber()
235 else if (ttisstring(l) && ttisstring(r)) in luaV_lessthan()
247 else if (ttisstring(l) && ttisstring(r)) in luaV_lessequal()
298 if (!(ttisstring(top-2) || ttisnumber(top-2)) || !tostring(L, top-1)) { in luaV_concat()
304 else if (ttisstring(top-2) && tsvalue(top-2)->len == 0) { in luaV_concat()
H A Dlvm.h16 #define tostring(L,o) (ttisstring(o) || (luaV_tostring(L, o)))
H A Dlobject.h134 #define ttisstring(o) checktype((o), LUA_TSTRING) macro
153 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts)
H A Dlgc.c121 else if (ttisstring(o)) { in iscleared()
436 if (mode && ttisstring(mode) && /* is there a weak mode? */ in traversetable()
827 const char *msg = (ttisstring(L->top - 1)) in GCTM()
H A Dlapi.c389 if (!ttisstring(o)) { in lua_tolstring()
/freebsd/contrib/lua/src/
H A Dlvm.h24 #define cvt2num(o) ttisstring(o)
H A Dldebug.c429 *name = (ttisstring(kvalue)) ? svalue(kvalue) : "?"; in kname()
571 if (ttisstring(&p->k[b])) { in getobjname()
762 if (ttisstring(p1) || cvt2str(p1)) p1 = p2; in luaG_concaterror()
H A Dlvm.c526 if (ttisstring(l) && ttisstring(r)) /* both are strings? */ in lessthanothers()
548 if (ttisstring(l) && ttisstring(r)) /* both are strings? */ in lessequalothers()
623 (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1)))
648 if (!(ttisstring(s2v(top - 2)) || cvt2str(s2v(top - 2))) || in luaV_concat()
H A Dlobject.h363 #define ttisstring(o) checktype((o), LUA_TSTRING) macro
369 #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.c435 const char *msg = (ttisstring(errobj)) in luaE_warnerror()
H A Dlapi.c318 return (ttisstring(o) || cvt2str(o)); in lua_isstring()
409 if (!ttisstring(o)) { in lua_tolstring()
H A Dlgc.c546 if (mode && ttisstring(mode) && /* is there a weak mode? */ in traversetable()