gba icon indicating copy to clipboard operation
gba copied to clipboard

alignX structs / macro to allow for aligned include_bytes!() usage

Open Lokathor opened this issue 6 years ago • 0 comments

Thanks to oli for suggesting this style

#[repr(align(4))] struct Wrapper<T>(T);

pub const A: &[u8] = &Wrapper(*include_bytes!("file.img")).0;

Lokathor avatar Apr 30 '19 00:04 Lokathor