macro_rules! write_complex_to_array { ($input:ident, $output:ident, { $($idx:literal),* }) => { ... }; }