added LargePointer handling in moo_fmt_object_()

This commit is contained in:
hyunghwan.chung
2019-09-10 15:20:21 +00:00
parent da1f8cb67b
commit c3c5365fcf
2 changed files with 25 additions and 5 deletions

View File

@ -1429,6 +1429,11 @@ int moo_fmt_object_ (moo_fmtout_t* fmtout, moo_oop_t oop)
if (!moo_numtostr(moo, oop, 10 | MOO_NUMTOSTR_NONEWOBJ)) return -1;
if (moo_bfmt_out(fmtout, "%.*js", moo->inttostr.xbuf.len, moo->inttostr.xbuf.ptr) <= -1) return -1;
}
else if (c == moo->_large_pointer)
{
if (moo_ptrtooow(moo, oop, &i) <= -1) return -1;
if (moo_bfmt_out(fmtout, "#\\p%zX", i) <= -1) return -1;
}
else if (MOO_OBJ_GET_FLAGS_TYPE(oop) == MOO_OBJ_TYPE_CHAR)
{
moo_ooch_t ch;