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 scm {
|
||||
/** Register primitive factories with primitive registry **/
|
||||
bool numeric_register_primitives(obj<xo::mm::AAllocator> mm,
|
||||
StringTable * stbl,
|
||||
bool numeric_register_primitives(obj<ARuntimeContext> rcx,
|
||||
//obj<xo::mm::AAllocator> mm,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,10 +51,12 @@ namespace xo {
|
|||
}
|
||||
|
||||
bool
|
||||
numeric_register_primitives(obj<AAllocator> mm, StringTable * stbl,
|
||||
numeric_register_primitives(obj<ARuntimeContext> rcx,
|
||||
//obj<AAllocator> mm, StringTable * stbl,
|
||||
InstallSink sink, InstallFlags flags)
|
||||
{
|
||||
(void)stbl;
|
||||
obj<AAllocator> mm = rcx.allocator();
|
||||
StringTable * stbl = rcx.stringtable();
|
||||
|
||||
scope log(XO_DEBUG(true));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue