/** @file DInteger.cpp * * @author Roland Conybeare, Jan 2026 **/ #include "DInteger.hpp" #include #include namespace xo { using xo::facet::typeseq; using xo::print::ppdetail_atomic; namespace scm { DInteger * DInteger::_box(obj mm, long x) { void * mem = mm.alloc(typeseq::id(), sizeof(DInteger)); return new (mem) DInteger(x); } bool DInteger::pretty(const ppindentinfo & ppii) const { return ppdetail_atomic::print_pretty(ppii, value_); } size_t DInteger::shallow_size() const noexcept { return sizeof(DInteger); } DInteger * DInteger::shallow_copy(obj mm) const noexcept { DInteger * copy = (DInteger *)mm.alloc_copy((std::byte *)this); if (copy) *copy = *this; return copy; } size_t DInteger::forward_children(obj) noexcept { return shallow_size(); } } /*namespace scm*/ } /*namespace xo*/ /* end DInteger.cpp */