From 675fe3d6c3384dc0eb07de2c03e784479bebdc71 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 4 Feb 2026 19:17:07 -0500 Subject: [PATCH] xo-interpreter2 stack: scaffold DClosure, DLocalEnv [WIP] --- include/xo/alloc2/alloc/RAllocator.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/xo/alloc2/alloc/RAllocator.hpp b/include/xo/alloc2/alloc/RAllocator.hpp index ad528ba..ecd80bb 100644 --- a/include/xo/alloc2/alloc/RAllocator.hpp +++ b/include/xo/alloc2/alloc/RAllocator.hpp @@ -31,6 +31,11 @@ namespace xo { requires std::is_same_v : Object(iface, data) {} + template + void * alloc_for() noexcept { + return O::iface()->alloc(O::data(), typeseq::id(), sizeof(T)); + } + typeseq _typeseq() const noexcept { return O::iface()->_typeseq(); } void _drop() const noexcept { O::iface()->_drop(O::data()); } std::string_view name() const noexcept { return O::iface()->name(O::data()); }