/** @file GCObjectConversion_DInteger.cpp * * @author Roland Conybeare, Jan 2026 **/ #include "number/GCObjectConversion_DInteger.hpp" #include namespace xo { using xo::mm::AGCObject; namespace scm { obj GCObjectConversion::to_gco(obj mm, long x) { return DInteger::box(mm, x); } long GCObjectConversion::from_gco(obj mm, obj gco) { (void)mm; auto int_obj = obj::from(gco); if (!int_obj) { throw std::runtime_error (tostr("Object obj found where Integer expected", xtag("obj", gco))); } return int_obj.data()->value(); } } /*namespace scm*/ } /*namespace xo*/ /* end GCObjectConversion_DFloat.cpp */