Created
July 1, 2021 01:20
-
-
Save MingweiSamuel/3d6542a8dde4546a19d98b392237514b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! arr { | |
( | |
$( #[$attr:meta] )* | |
$v:vis $id:ident $name:ident: [$ty:ty; _] = $value:expr | |
) => { | |
$( #[$attr] )* | |
$v $id $name: [$ty; $value.len()] = $value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment