]> Untitled Git - bdk/commitdiff
[descriptor] Add an alias for `and_or()`
authorAlekos Filini <alekos.filini@gmail.com>
Wed, 15 Sep 2021 08:36:02 +0000 (10:36 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Wed, 15 Sep 2021 08:37:35 +0000 (10:37 +0200)
The descriptor syntax encodes it with `andor()`, without the underscore

src/descriptor/dsl.rs

index b4fdcba7bf0e126256380bf0b99d49af7576dfe0..b9acce3bb265133b8e62b6fa2ac1afcb0f4614b5 100644 (file)
@@ -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 )*)
     });