mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
any type
This commit is contained in:
+2
-10
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user