xo-alloc2: streamline setup

This commit is contained in:
Roland Conybeare 2026-03-16 19:12:09 -05:00
commit 4a2bbd0761
3 changed files with 4 additions and 19 deletions

View file

@ -1,15 +0,0 @@
/** @file alloc2_register_facets.hpp
*
* @author Roland Conybeare, Feb 2026
**/
#pragma once
namespace xo {
namespace mm {
/** Register alloc2 (facet,impl) combinations with Facet Registry **/
bool alloc2_register_facets();
}
}
/* end alloc2_register_facets.hpp */

View file

@ -4,7 +4,7 @@ set(SELF_LIB xo_alloc2)
set(SELF_SRCS
init_alloc2.cpp
alloc2_register_facets.cpp
SetupAlloc2.cpp
CollectorTypeRegistry.cpp

View file

@ -4,17 +4,17 @@
**/
#include "init_alloc2.hpp"
#include "alloc2_register_facets.hpp"
#include "SetupAlloc2.hpp"
namespace xo {
using xo::mm::alloc2_register_facets;
using xo::mm::SetupAlloc2;
// using xo::mm::alloc2_register_types;
// using xo::mm::CollectorTypeRegistry;
void
InitSubsys<S_alloc2_tag>::init()
{
alloc2_register_facets();
SetupAlloc2::register_facets();
}
InitEvidence