Removed func and rewrote typedefs.

This commit is contained in:
Christoffer Lerno
2021-05-20 10:31:44 +02:00
committed by Christoffer Lerno
parent 90c988cc1f
commit 1f676c135c
38 changed files with 328 additions and 240 deletions

View File

@@ -22,7 +22,7 @@ public error AllocationFailure
AllocationFailureKind failureKind;
}
public typedef func void!(void *data, void** pointer, usize bytes, usize alignment, AllocationKind kind) as AllocatorFunction;
public define AllocatorFunction = func void!(void *data, void** pointer, usize bytes, usize alignment, AllocationKind kind);
public struct Allocator
{

View File

@@ -9,7 +9,7 @@ public struct Foo
extern func void printf(char *hello);
local func void ofke()
func void ofke()
{}
func void exple() {}