Allow trailing comma in vertex_attr_array!

This commit is contained in:
Ben Frankel authored and GitHub committed 2020-06-28 14:23:23 -07:00
1 parent 6309dc29b2
commit 17b6982f49
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@
/// Offsets are calculated automatically.
#[macro_export]
macro_rules! vertex_attr_array {
($($loc:expr => $fmt:ident),*) => {
($($loc:expr => $fmt:ident),* $(,)?) => {
$crate::vertex_attr_array!([] ; 0; $($loc => $fmt ,)*)
};
([$($t:expr,)*] ; $off:expr ;) => { [$($t,)*] };