Skip to content

Commit 18cd594

Browse files
committed
Make the macro-function argument experimental
1 parent fde49a8 commit 18cd594

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bindgen-cli/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ struct BindgenCommand {
422422
wrap_static_fns_suffix: Option<String>,
423423
/// Create a wrapper function for the macro. The MACRO value must be of the shape
424424
/// `[<return type>] <macro name>[(<comma separated list of arguments>)]`.
425-
#[arg(long, value_name = "MACRO")]
425+
#[arg(long, requires = "experimental", value_name = "MACRO")]
426426
macro_function: Option<Vec<String>>,
427427
/// Set the default VISIBILITY of fields, including bitfields and accessor methods for
428428
/// bitfields. This flag is ignored if the `--respect-cxx-access-specs` flag is used.

bindgen-tests/tests/headers/function_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// bindgen-flags: --macro-function "SIMPLE" --macro-function "INDIRECT_SIMPLE" --macro-function "f32 COMPLEX(u32)" --macro-function "f32 INDIRECT_COMPLEX(u32)" --macro-function "f32 CONDITIONAL_COMPLEX(bool, u32)"
1+
// bindgen-flags: --experimental --macro-function "SIMPLE" --macro-function "INDIRECT_SIMPLE" --macro-function "f32 COMPLEX(u32)" --macro-function "f32 INDIRECT_COMPLEX(u32)" --macro-function "f32 CONDITIONAL_COMPLEX(bool, u32)"
22

33
void simple(void);
44

0 commit comments

Comments
 (0)