minimal update
This commit is contained in:
parent
7b5b4a2820
commit
a1b1e73a53
12
src/main.rs
12
src/main.rs
|
@ -19,7 +19,6 @@ impl HostFunctions {
|
|||
signature.params() == params && signature.return_type() == ret_ty
|
||||
}
|
||||
}
|
||||
|
||||
impl Externals for HostFunctions {
|
||||
fn invoke_index(
|
||||
&mut self,
|
||||
|
@ -34,12 +33,11 @@ impl Externals for HostFunctions {
|
|||
|
||||
Ok(Some(RuntimeValue::I32(result as i32)))
|
||||
}
|
||||
SysCall::CONSOLE_RESET => {}
|
||||
SysCall::CONSOLE_IN => {}
|
||||
SysCall::CONSOLE_OUT => {}
|
||||
SysCall::CONSOLE_GET_TITLE => {}
|
||||
SysCall::CONSOLE_SET_TITLE => {}
|
||||
|
||||
// SysCall::CONSOLE_RESET => {}
|
||||
// SysCall::CONSOLE_IN => {}
|
||||
// SysCall::CONSOLE_OUT => {}
|
||||
// SysCall::CONSOLE_GET_TITLE => {}
|
||||
// SysCall::CONSOLE_SET_TITLE => {}
|
||||
_ => panic!("Unimplemented function at {}", index),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
macro_rules! syscall_enum {
|
||||
() => {};
|
||||
(@get_last $Variant:ident) => {
|
||||
Self::$Variant
|
||||
};
|
||||
|
@ -73,9 +74,6 @@ syscall_enum! {
|
|||
SOCKET_SEND=42,
|
||||
SOCKET_RECIEVE=43,
|
||||
|
||||
|
||||
|
||||
|
||||
// Security Syscalls
|
||||
ENCRYPT=50,
|
||||
EMPTY=0xFFFF,
|
||||
|
|
Reference in a new issue