Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
f8f17a09fb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;