diff options
Diffstat (limited to 'rust-src/bch_bindgen/src/opts.rs')
-rw-r--r-- | rust-src/bch_bindgen/src/opts.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust-src/bch_bindgen/src/opts.rs b/rust-src/bch_bindgen/src/opts.rs new file mode 100644 index 00000000..e2261993 --- /dev/null +++ b/rust-src/bch_bindgen/src/opts.rs @@ -0,0 +1,9 @@ +#[macro_export] +macro_rules! opt_set { + ($opts:ident, $n:ident, $v:expr) => { + bch_bindgen::paste! { + $opts.$n = $v; + $opts.[<set_ $n _defined>](1); + } + } +} |