Bläddra i källkod

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 år sedan
förälder
incheckning
f8f17a09fb
1 ändrade filer med 1 tillägg och 1 borttagningar
  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;