mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 21:06:18 -04:00
Change to HeapAlloc et al on Windows
This commit is contained in:
1 parent
add53228b2
commit
386f5f596d
3 files changed
+36
-10
No files matched your search
+1
-7
@@ -1782,13 +1782,7 @@ void type_path_pop(TypePath *tp) {
|
||||
i64 type_size_of_internal (gbAllocator allocator, Type *t, TypePath *path);
|
||||
i64 type_align_of_internal(gbAllocator allocator, Type *t, TypePath *path);
|
||||
|
||||
i64 align_formula(i64 size, i64 align) {
|
||||
if (align > 0) {
|
||||
i64 result = size + align-1;
|
||||
return result - result%align;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
|
||||
i64 type_size_of(gbAllocator allocator, Type *t) {
|
||||
if (t == nullptr) {
|
||||
|
||||
Reference in new issue
Block a user