/** @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")); } DBoolean * DBoolean::gco_shallow_move(obj gc) noexcept { return gc.std_move_for(this); } void DBoolean::visit_gco_children(VisitReason, obj) noexcept { // no-op. childless } } /*namespace scm*/ } /*namespace xo*/ /* end DBoolean.cpp */