We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa8a22 commit 66b27c4Copy full SHA for 66b27c4
examples/s2/src/main.rs
@@ -22,10 +22,10 @@ include_cpp! {
22
// which means the functions themselves do not need to be marked
23
// as unsafe. Other policies are possible.
24
safety!(unsafe)
25
- // What types and functions we want to generate
26
- generate!("R1Interval")
27
- generate!("R2Rect")
28
- 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!()
29
}
30
31
// Everything that we care about is inlined, so we don't have to do
0 commit comments