416: Allow trailing comma in vertex_attr_array! r=cwfitzgerald a=benfrankel



Co-authored-by: Ben Frankel <ben.frankel7@gmail.com>
This commit is contained in:
bors[bot]andBen Frankel authored and GitHub committed 2020-06-28 21:24:54 +00:00
commit 7c1f090c85
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,)*] };