1 #![no_std]
2 
3 // ANDROID: Unconditionally use std to allow building as a dylib.
4 extern crate std;
5 
6 #[macro_export]
7 macro_rules! impl_mirrored {
8     {
9     type Mirror = $tinyname:ident;
10     $(
11         $(#[$attr:meta])*
12         $v:vis fn $fname:ident ($seif:ident : $seifty:ty $(,$argname:ident : $argtype:ty)*) $(-> $ret:ty)? ;
13     )*
14     } => {
15         $(
16         $(#[$attr])*
17         #[inline(always)]
18         $v fn $fname($seif : $seifty, $($argname: $argtype),*) $(-> $ret)? {
19             match $seif {
20                 $tinyname::Inline(i) => i.$fname($($argname),*),
21                 $tinyname::Heap(h) => h.$fname($($argname),*),
22             }
23         }
24         )*
25     };
26 }
27 
28