浏览代码

aya: expand include_bytes_aligned to accept expressions.

This allows one to this macro with literal expressions involving macros
such as concat! and env!.
Thia Wyrod 3 年之前
父节点
当前提交
f8f17a09fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      aya/src/util.rs

+ 1 - 1
aya/src/util.rs

@@ -124,7 +124,7 @@ pub(crate) fn tc_handler_make(major: u32, minor: u32) -> u32 {
 /// ```
 #[macro_export]
 macro_rules! include_bytes_aligned {
-    ($path:literal) => {{
+    ($path:expr) => {{
         #[repr(align(32))]
         pub struct Aligned32;