aya: expand include_bytes_aligned to accept expressions.

This allows one to this macro with literal expressions involving macros
such as concat! and env!.
pull/122/head
Thia Wyrod 3 years ago
parent df393690d3
commit f8f17a09fb
No known key found for this signature in database
GPG Key ID: 55D3AB7E5658CA0C

@ -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;

Loading…
Cancel
Save