MVP of Foreign Function Interface

This commit is contained in:
Adrián Arroyo Calle
2023-02-22 23:10:03 +01:00
parent 2fcec4fff9
commit 9d52d2a653
10 changed files with 679 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ use crate::arena::*;
use crate::arithmetic::*;
use crate::atom_table::*;
use crate::forms::*;
use crate::ffi::ForeignFunctionTable;
use crate::instructions::*;
use crate::machine::args::*;
use crate::machine::compile::*;
@@ -65,6 +66,7 @@ pub struct Machine {
pub(super) user_error: Stream,
pub(super) load_contexts: Vec<LoadContext>,
pub(super) runtime: Runtime,
pub(super) foreign_function_table: ForeignFunctionTable,
}
#[derive(Debug)]
@@ -443,6 +445,7 @@ impl Machine {
user_error,
load_contexts: vec![],
runtime,
foreign_function_table: Default::default(),
};
let mut lib_path = current_dir();