소스 검색

Merge pull request #122 from eero-thia/thia/include_bytes_aligned

aya: expand include_bytes_aligned to accept expressions.
Alessandro Decina 3 년 전
부모
커밋
a6bf554a74
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;