xo-interpreter2 stack: use RuntimeContext to streamline setup
This commit is contained in:
parent
4039926d33
commit
dc43feece0
2 changed files with 7 additions and 4 deletions
|
|
@ -11,8 +11,9 @@
|
||||||
namespace xo {
|
namespace xo {
|
||||||
namespace scm {
|
namespace scm {
|
||||||
/** Register primitive factories with primitive registry **/
|
/** Register primitive factories with primitive registry **/
|
||||||
bool numeric_register_primitives(obj<xo::mm::AAllocator> mm,
|
bool numeric_register_primitives(obj<ARuntimeContext> rcx,
|
||||||
StringTable * stbl,
|
//obj<xo::mm::AAllocator> mm,
|
||||||
|
//StringTable * stbl,
|
||||||
InstallSink sink,
|
InstallSink sink,
|
||||||
InstallFlags flags);
|
InstallFlags flags);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,12 @@ namespace xo {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
numeric_register_primitives(obj<AAllocator> mm, StringTable * stbl,
|
numeric_register_primitives(obj<ARuntimeContext> rcx,
|
||||||
|
//obj<AAllocator> mm, StringTable * stbl,
|
||||||
InstallSink sink, InstallFlags flags)
|
InstallSink sink, InstallFlags flags)
|
||||||
{
|
{
|
||||||
(void)stbl;
|
obj<AAllocator> mm = rcx.allocator();
|
||||||
|
StringTable * stbl = rcx.stringtable();
|
||||||
|
|
||||||
scope log(XO_DEBUG(true));
|
scope log(XO_DEBUG(true));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue