This commit is contained in:
Folkert 2023-01-08 14:49:13 +01:00
parent 1c1112ec35
commit 98ba49baf6
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
6 changed files with 48 additions and 23 deletions

View file

@ -97,6 +97,21 @@ union union_Op {
_sizer: [u8; 8],
}
#[derive(Clone)]
struct RocFunction_3 {
closure_data: T
}
impl RocFunction_3 {
pub fn call(self) -> U {
extern "C" {
fn call_the_closure(T) -> U ;
}
call_the_closure(self.closure_data)
}
}
impl Op {
#[cfg(any(
target_arch = "arm",