Change SpirV macro from expr to tt

As suggested in the pull request.
This commit is contained in:
Nathan Kent committed 2020-06-18 13:56:48 -04:00
1 parent b0b577c9a3
commit 3984737743
1 file changed
+2 -2
+2 -2
View File
@@ -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)
};
}