Skip to content

Commit

Permalink
Use generate_all! in s2 example.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Jun 3, 2021
1 parent 2aa8a22 commit 66b27c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/s2/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ include_cpp! {
// which means the functions themselves do not need to be marked
// as unsafe. Other policies are possible.
safety!(unsafe)
// What types and functions we want to generate
generate!("R1Interval")
generate!("R2Rect")
generate!("describe_point")
// Attempt to generate bindings for all the C++ APIs we find.
// Things are much quicker and more reliable if you provide an allowlist
// via lots of directives like: generate!("R2Rect") etc.
generate_all!()
}

// Everything that we care about is inlined, so we don't have to do
Expand Down

0 comments on commit 66b27c4

Please sign in to comment.