Searched refs:tsvalue (Results 1 – 6 of 6) sorted by relevance
37 if (ttisstring(obj) && luaO_str2d(svalue(obj), tsvalue(obj)->len, &num)) { in luaV_tonumber()303 else if (tsvalue(top-1)->len == 0) /* second operand is empty? */ in luaV_concat()305 else if (ttisstring(top-2) && tsvalue(top-2)->len == 0) { in luaV_concat()310 size_t tl = tsvalue(top-1)->len; in luaV_concat()315 size_t l = tsvalue(top-i-1)->len; in luaV_concat()324 size_t l = tsvalue(top-i)->len; in luaV_concat()347 setnvalue(ra, cast_num(tsvalue(rb)->len)); in luaV_objlen()
155 #define tsvalue(o) (&rawtsvalue(o)->tsv) macro
399 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring()407 case LUA_TSTRING: return tsvalue(o)->len; in lua_rawlen()
289 } else if (tsvalue(top-1)->len == 0) /* second op is empty? */ in luaV_concat()293 size_t tl = tsvalue(top-1)->len; in luaV_concat()298 size_t l = tsvalue(top-n-1)->len; in luaV_concat()305 size_t l = tsvalue(top-i)->len; in luaV_concat()522 setnvalue(ra, cast_num(tsvalue(rb)->len)); in luaV_execute()
356 if (len != NULL) *len = tsvalue(o)->len; in lua_tolstring()364 case LUA_TSTRING: return tsvalue(o)->len; in lua_objlen()370 l = (luaV_tostring(L, o) ? tsvalue(o)->len : 0); in lua_objlen()
95 #define tsvalue(o) (&rawtsvalue(o)->tsv) macro