Fix missing type_info with manual linear search

This commit is contained in:
Ginger Bill
2016-09-08 00:23:14 +01:00
parent 3d02f8a5fd
commit c6d02e4778
13 changed files with 55 additions and 79 deletions
+2 -3
View File
@@ -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()
}