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