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:
Jeroen van Rijn
2026-03-08 15:05:23 +01:00
parent 6f5446bfc4
commit 0087d6d62e

View File

@@ -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