xo-umbrella2/xo-gc/utest/init_gc_utest.hpp
Roland Conybeare f229baa2e1 git subrepo clone git@github.com:Rconybea/xo-gc.git xo-gc
subrepo:
  subdir:   "xo-gc"
  merged:   "b1898230"
upstream:
  origin:   "git@github.com:Rconybea/xo-gc.git"
  branch:   "main"
  commit:   "b1898230"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2026-06-06 22:10:28 -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 */