Skip to content

Commit 66b27c4

Browse files
committed
Use generate_all! in s2 example.
1 parent 2aa8a22 commit 66b27c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/s2/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ include_cpp! {
2222
// which means the functions themselves do not need to be marked
2323
// as unsafe. Other policies are possible.
2424
safety!(unsafe)
25-
// What types and functions we want to generate
26-
generate!("R1Interval")
27-
generate!("R2Rect")
28-
generate!("describe_point")
25+
// Attempt to generate bindings for all the C++ APIs we find.
26+
// Things are much quicker and more reliable if you provide an allowlist
27+
// via lots of directives like: generate!("R2Rect") etc.
28+
generate_all!()
2929
}
3030

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

0 commit comments

Comments
 (0)