mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
WIP
This commit is contained in:
parent
1c1112ec35
commit
98ba49baf6
6 changed files with 48 additions and 23 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue