xo-interpreter: add Primitive object, to expose builtin functions

This commit is contained in:
Roland Conybeare 2025-11-27 11:03:41 -05:00
commit 2526dcc9b1
23 changed files with 277 additions and 135 deletions

View file

@ -0,0 +1,20 @@
/** @file ObjectConversion.hpp
*
* @author Roland Conybeare, Nov 2025
**/
#pragma once
#include "Object.hpp"
namespace xo {
namespace obj {
template <typename T>
struct ObjectConversion {
static gp<Object> to_object(gc::IAlloc * mm, const T & x) = delete;
static T from_object(gc::IAlloc * mm, gp<Object> x) = delete;
};
}
}
/* end ObjectConversion.hpp */