Skip to content

Commit

Permalink
Add #no_copy to struct type
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Aug 13, 2024
1 parent f179727 commit 712b434
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/odin/printer/visit.odin
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,10 @@ visit_expr :: proc(
document = cons_with_nopl(document, text("#raw_union"))
}

if v.is_no_copy {
document = cons_with_nopl(document, text("#no_copy"))
}

if v.align != nil {
document = cons_with_nopl(document, text("#align"))
document = cons_with_nopl(document, visit_expr(p, v.align))
Expand Down

0 comments on commit 712b434

Please sign in to comment.