xo-gc/utest/init_gc_utest.hpp
Roland Conybeare 1387673f15 xo-gc: retire Collector.forward_inplace + mock x-gc utest
W/ MockCollector supporting AGCObjectVisitor facet
2026-04-07 21:16:55 -04:00

34 lines
745 B
C++

/** @file init_gc_utest.hpp
*
* @author Roland Conybeare, Apr 2026
**/
#pragma once
#include <xo/subsys/Subsystem.hpp>
namespace xo {
/* tag to represent xo-gc/utest/ as a mock subsystem within ordered initialization
*
* (so we can follow usual patterns for setting up facet tables)
*/
enum S_gc_utest_tag {};
template <>
struct InitSubsys<S_gc_utest_tag> {
static void init();
static InitEvidence require();
};
namespace mm {
class SetupGcUtest {
public:
/** Register gc/utest (facet,impl) combinations with FacetRegistry **/
static bool register_facets();
};
} /*namespace mm*/
} /*namespace xo*/
/* end init_gc_utest.hpp */