Skip to content

Commit

Permalink
Add more #attributes and support the latest Odin.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Nov 16, 2024
1 parent 212e52c commit 1bece35
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 16 additions & 0 deletions src/odin/printer/visit.odin
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,22 @@ visit_signature_field_flag :: proc(p: ^Printer, flags: ast.Field_Flags) -> ^Docu
document = cons_with_nopl(document, text("using"))
}

if .No_Broadcast in flags {
document = cons_with_nopl(document, text("#no_broadcast"))
}

if .No_Capture in flags {
document = cons_with_nopl(document, text("#no_capture"))
}

if .Subtype in flags {
document = cons_with_nopl(document, text("#subtype"))
}

if .By_Ptr in flags {
document = cons_with_nopl(document, text("#by_ptr"))
}

return document
}

Expand Down
3 changes: 0 additions & 3 deletions src/server/marshal.odin
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ marshal_to_writer :: proc(w: io.Writer, v: any, opt: ^Marshal_Options) -> (err:
case runtime.Type_Info_Simd_Vector:
return .Unsupported_Type

case runtime.Type_Info_Relative_Pointer:
return .Unsupported_Type

case runtime.Type_Info_Matrix:
return .Unsupported_Type

Expand Down

0 comments on commit 1bece35

Please sign in to comment.