This commit is contained in:
Ginger Bill
2016-09-07 15:15:10 +01:00
parent 61fcfd6f3d
commit 2c4193a242
8 changed files with 260 additions and 106 deletions
+2 -10
View File
@@ -18,11 +18,11 @@ Type_Info :: union {
base: ^Type_Info
}
Integer: struct {
bits: int
size: int // in bytes
signed: bool
}
Float: struct {
bits: int
size: int // in bytes
}
String: struct {}
Boolean: struct {}
@@ -49,14 +49,6 @@ Type_Info :: union {
}
}
Any :: struct {
type_info: ^Type_Info
// pointer to the data stored
data: rawptr
}
assume :: proc(cond: bool) #foreign "llvm.assume"