Procedure literals for default values in structs

This commit is contained in:
Ginger Bill
2017-10-01 20:01:00 +01:00
parent c1e720a49b
commit 8f39ebbe5a
7 changed files with 202 additions and 95 deletions
+2 -6
View File
@@ -13,17 +13,13 @@ c_ushort :: i16;
c_int :: i32;
c_uint :: u32;
when ODIN_OS == "windows" {
c_long :: i32;
} else when size_of(int) == 4 {
when ODIN_OS == "windows" || size_of(int) == 4 {
c_long :: i32;
} else {
c_long :: i64;
}
when ODIN_OS == "windows" {
c_ulong :: u32;
} else when size_of(uint) == 4 {
when ODIN_OS == "windows" || size_of(uint) == 4 {
c_ulong :: u32;
} else {
c_ulong :: u64;