mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Removed func and rewrote typedefs.
This commit is contained in:
committed by
Christoffer Lerno
parent
90c988cc1f
commit
1f676c135c
@@ -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
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ public struct Foo
|
||||
|
||||
extern func void printf(char *hello);
|
||||
|
||||
local func void ofke()
|
||||
func void ofke()
|
||||
{}
|
||||
|
||||
func void exple() {}
|
||||
|
||||
Reference in New Issue
Block a user