A library for writing host-specific, single-binary configuration management and deployment tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
332 B

  1. macro_rules! for_each_tuple_ {
  2. ( $m:ident !! ) => (
  3. $m! { }
  4. );
  5. ( $m:ident !! $h:ident, $($t:ident,)* ) => (
  6. $m! { $h $($t)* }
  7. for_each_tuple_! { $m !! $($t,)* }
  8. );
  9. }
  10. #[macro_export]
  11. macro_rules! for_each_tuple {
  12. ( $m:ident ) => (
  13. for_each_tuple_! { $m !! A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, }
  14. );
  15. }