mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
Add #ordered to the "raw" types in raw.odin
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
Any :: struct {
|
||||
Any :: struct #ordered {
|
||||
data: rawptr,
|
||||
type_info: ^Type_Info,
|
||||
}
|
||||
|
||||
String :: struct {
|
||||
String :: struct #ordered {
|
||||
data: ^byte,
|
||||
len: int,
|
||||
};
|
||||
|
||||
Slice :: struct {
|
||||
Slice :: struct #ordered {
|
||||
data: rawptr,
|
||||
len: int,
|
||||
cap: int,
|
||||
};
|
||||
|
||||
Dynamic_Array :: struct {
|
||||
Dynamic_Array :: struct #ordered {
|
||||
data: rawptr,
|
||||
len: int,
|
||||
cap: int,
|
||||
allocator: Allocator,
|
||||
};
|
||||
|
||||
Dynamic_Map :: struct {
|
||||
Dynamic_Map :: struct #ordered {
|
||||
hashes: [dynamic]int,
|
||||
entries: Dynamic_Array,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user