subrepo: subdir: "xo-object2" merged: "8156e514" upstream: origin: "git@github.com:Rconybea/xo-object2.git" branch: "main" commit: "8156e514" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
29 lines
709 B
C++
29 lines
709 B
C++
/** @file GCObjectConversion_DInteger.hpp
|
|
*
|
|
* @author Roland Conybeare, Jan 2026
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
#include "DInteger.hpp"
|
|
#include "number/IGCObject_DInteger.hpp"
|
|
#include <xo/alloc2/GCObjectConversion.hpp>
|
|
|
|
namespace xo {
|
|
namespace scm {
|
|
|
|
template <>
|
|
struct GCObjectConversion<long> {
|
|
static_assert(std::is_same_v<long, DInteger::value_type>);
|
|
|
|
using AGCObject = xo::mm::AGCObject;
|
|
using AAllocator = xo::mm::AAllocator;
|
|
|
|
static obj<AGCObject> to_gco(obj<AAllocator> mm, long x);
|
|
static long from_gco(obj<AAllocator> mm, obj<AGCObject> gco);
|
|
};
|
|
|
|
}
|
|
} /*namespace xo*/
|
|
|
|
/* end GCObjectConversion_DInteger.hpp */
|