mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Add runtime.Typeid_Bit_Field
This commit is contained in:
@@ -273,14 +273,14 @@ Typeid_Kind :: enum u8 {
|
|||||||
}
|
}
|
||||||
#assert(len(Typeid_Kind) < 32)
|
#assert(len(Typeid_Kind) < 32)
|
||||||
|
|
||||||
// Typeid_Bit_Field :: bit_field #align(align_of(uintptr)) {
|
Typeid_Bit_Field :: bit_field uintptr {
|
||||||
// index: 8*size_of(uintptr) - 8,
|
index: uintptr | 8*size_of(uintptr) - 8,
|
||||||
// kind: 5, // Typeid_Kind
|
kind: Typeid_Kind | 5, // Typeid_Kind
|
||||||
// named: 1,
|
named: bool | 1,
|
||||||
// special: 1, // signed, cstring, etc
|
special: bool | 1, // signed, cstring, etc
|
||||||
// reserved: 1,
|
reserved: bool | 1,
|
||||||
// }
|
}
|
||||||
// #assert(size_of(Typeid_Bit_Field) == size_of(uintptr));
|
#assert(size_of(Typeid_Bit_Field) == size_of(uintptr))
|
||||||
|
|
||||||
// NOTE(bill): only the ones that are needed (not all types)
|
// NOTE(bill): only the ones that are needed (not all types)
|
||||||
// This will be set by the compiler
|
// This will be set by the compiler
|
||||||
|
|||||||
Reference in New Issue
Block a user