xo-interpreter: add Primitive object, to expose builtin functions
This commit is contained in:
parent
4488117ac3
commit
2526dcc9b1
23 changed files with 277 additions and 135 deletions
20
xo-object/include/xo/object/ObjectConversion.hpp
Normal file
20
xo-object/include/xo/object/ObjectConversion.hpp
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue