From 398473774328deb2b6023f7af4569c8f62337900 Mon Sep 17 00:00:00 2001 From: Nathan Kent Date: Thu, 18 Jun 2020 13:56:48 -0400 Subject: [PATCH] Change SpirV macro from `expr` to `tt` As suggested in the pull request. --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 439f451f5..3cf649ed1 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -143,7 +143,7 @@ fn test_vertex_attr_array() { /// It ensure the word alignment as well as the magic number. #[macro_export] macro_rules! include_spirv { - ($path:expr) => { - $crate::util::make_spirv(&$crate::util::WordAligned(*include_bytes!($path)).0) + ($($token:tt)*) => { + $crate::util::make_spirv(&$crate::util::WordAligned(*include_bytes!($($token)*)).0) }; }