xo-object2: tidy IGCObject_DInteger + codegen

This commit is contained in:
Roland Conybeare 2026-01-15 00:58:55 -05:00
commit 9da8217df0
10 changed files with 152 additions and 77 deletions

View file

@ -26,6 +26,31 @@ namespace xo {
{
return ppdetail_atomic<long>::print_pretty(ppii, value_);
}
size_t
DInteger::shallow_size() const noexcept
{
return sizeof(DInteger);
}
DInteger *
DInteger::shallow_copy(obj<AAllocator> mm) const noexcept
{
DInteger * copy = (DInteger *)mm.alloc_copy((std::byte *)this);
if (copy)
*copy = *this;
return copy;
}
size_t
DInteger::forward_children(obj<ACollector>) noexcept
{
return shallow_size();
}
} /*namespace scm*/
} /*namespace xo*/