mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Fix missing type_info with manual linear search
This commit is contained in:
@@ -9,7 +9,7 @@ Type_Info :: union {
|
||||
offset: int
|
||||
}
|
||||
Record :: struct {
|
||||
fields: []Member
|
||||
fields: []Member // NOTE(bill): This will need to be allocated on the heap
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ Type_Info :: union {
|
||||
}
|
||||
|
||||
|
||||
|
||||
assume :: proc(cond: bool) #foreign "llvm.assume"
|
||||
|
||||
__debug_trap :: proc() #foreign "llvm.debugtrap"
|
||||
@@ -276,7 +277,5 @@ __default_allocator :: proc() -> Allocator {
|
||||
|
||||
__assert :: proc(msg: string) {
|
||||
file_write(file_get_standard(File_Standard.ERROR), msg as []byte)
|
||||
// TODO(bill): Which is better?
|
||||
// __trap()
|
||||
__debug_trap()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user