Init new repository

This commit is contained in:
Krzosa Karol
2024-04-13 15:29:53 +02:00
commit 5a2e3dcec4
335 changed files with 61571 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import "libc";
SourceLoc :: struct {
file: String;
line: int;
}
Allocate :: proc(size: int, source_loc: SourceLoc = {}): *void {
printf("%.*s:%d\n", source_loc.file.len, source_loc.file.str, source_loc.line);
return malloc(:size_t(size));
}
main :: proc(): int {
value: *int = Allocate(32);
return 0;
}