From: Alekos Filini Date: Wed, 15 Sep 2021 08:36:02 +0000 (+0200) Subject: [descriptor] Add an alias for `and_or()` X-Git-Tag: v0.12.0~12^2~1 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/error/enum.CreateTxError.html?a=commitdiff_plain;h=5edf663f3db3fcf383388e36c503013125909e7d;p=bdk [descriptor] Add an alias for `and_or()` The descriptor syntax encodes it with `andor()`, without the underscore --- diff --git a/src/descriptor/dsl.rs b/src/descriptor/dsl.rs index b4fdcba7..b9acce3b 100644 --- a/src/descriptor/dsl.rs +++ b/src/descriptor/dsl.rs @@ -602,6 +602,9 @@ macro_rules! fragment { ( and_or ( $( $inner:tt )* ) ) => ({ $crate::impl_node_opcode_three!(AndOr, $( $inner )*) }); + ( andor ( $( $inner:tt )* ) ) => ({ + $crate::impl_node_opcode_three!(AndOr, $( $inner )*) + }); ( or_b ( $( $inner:tt )* ) ) => ({ $crate::impl_node_opcode_two!(OrB, $( $inner )*) });