Browse Source

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

aya: expand include_bytes_aligned to accept expressions.
Alessandro Decina 3 years ago
parent
commit
a6bf554a74
1 changed files with 1 additions and 1 deletions
  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;