Skip to content

Commit

Permalink
Add support for abi
Browse files Browse the repository at this point in the history
  • Loading branch information
parno committed Nov 16, 2023
1 parent 113282d commit ff97974
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions examples/wip.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
verus! {

fn test() {
for CKeyKV { k, v } in v {
res.insert(k, v);
}
#[verifier(external_body)]
pub struct NetClientCPointers {
get_time_func: extern "C" fn() -> u64,
receive_func: extern "C" fn(i32, *mut bool, *mut bool, *mut *mut std::vec::Vec<u8>, *mut *mut std::vec::Vec<u8>),
send_func: extern "C" fn(u64, *const u8, u64, *const u8) -> bool
}


} // verus!
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ fn to_doc<'a>(
}
}))
}
Rule::abi => unsupported(pair),
Rule::abi => map_to_doc(ctx, arena, pair).append(arena.text(" ")),
Rule::param_list => comma_delimited(ctx, arena, pair).parens().group(),
Rule::closure_param_list => comma_delimited(ctx, arena, pair)
.enclose(arena.text("|"), arena.text("|"))
Expand Down

0 comments on commit ff97974

Please sign in to comment.