mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
Add preserve/* to base:runtime
```odin
none :: proc "preserve/none" () {}
most :: proc "preserve/most" () {}
all :: proc "preserve/all" () {}
print_cc :: proc(type: any) {
ti := type_info_of(type.id)
p := ti.variant.(runtime.Type_Info_Procedure)
fmt.println(p.convention)
}
main :: proc() {
print_cc(none)
print_cc(most)
print_cc(all)
}
```
This commit is contained in:
@@ -39,6 +39,10 @@ Calling_Convention :: enum u8 {
|
||||
|
||||
Win64 = 9,
|
||||
SysV = 10,
|
||||
|
||||
Preserve_None = 11,
|
||||
Preserve_Most = 12,
|
||||
Preserve_All = 13,
|
||||
}
|
||||
|
||||
Type_Info_Enum_Value :: distinct i64
|
||||
|
||||
Reference in New Issue
Block a user