Skip to content

Commit

Permalink
Merge pull request #28 from iMplode-nZ/main
Browse files Browse the repository at this point in the history
Added repr transparent.
  • Loading branch information
shiinamiyuki authored Oct 20, 2023
2 parents edbe1b9 + 283772c commit 2d8bc74
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions luisa_compute_derive_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,10 @@ impl Compiler {
let path = &list.path;
if path.is_ident("repr") {
for tok in list.tokens.clone().into_iter() {
match tok {
TokenTree::Ident(ident) => {
if ident == "C" {
has_repr_c = true;
}
if let TokenTree::Ident(ident) = tok {
if ident == "C" || ident == "transparent" {
has_repr_c = true;
}
_ => {}
}
}
} else if path.is_ident("value_new") {
Expand Down

0 comments on commit 2d8bc74

Please sign in to comment.