mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-20 00:16:47 +00:00
fmt improvement; Minor refactoring
This commit is contained in:
@@ -63,6 +63,18 @@ Type_Info :: union {
|
||||
}
|
||||
}
|
||||
|
||||
type_info_base :: proc(info: ^Type_Info) -> ^Type_Info {
|
||||
for {
|
||||
match type i : info {
|
||||
case Type_Info.Named:
|
||||
info = i.base
|
||||
continue
|
||||
}
|
||||
|
||||
return info
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
assume :: proc(cond: bool) #foreign "llvm.assume"
|
||||
|
||||
Reference in New Issue
Block a user