Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Oct 23, 2020
1 parent c6cbf3b commit ffc14e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/bind/rust/src/lib.rs
Expand Up @@ -12,11 +12,11 @@ pub fn abort(msg: &str) -> ! {
rt::chtk_abort(buf.as_ptr());
}

pub struct Context;
pub struct Context(*mut rt::Context);

impl Context {
fn get() -> Context {
panic!()
rt
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/rt/src/rtcalls.rs
Expand Up @@ -11,7 +11,7 @@ pub type c_char = i8;
pub struct Context;

#[no_mangle]
pub extern fn chtk_malloc(bytes: usize) -> *mut u8 {
pub extern unsafe fn chtk_malloc(bytes: usize) -> *mut u8 {
panic!()
}

Expand Down

0 comments on commit ffc14e7

Please sign in to comment.