mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Initial release version
* Code cleanup * Fix some TODOs * Reduce heap allocation use and replace with arena allocation
This commit is contained in:
+3
-1
@@ -2,12 +2,13 @@ type Vec2: struct {
|
||||
x, y: f32;
|
||||
}
|
||||
|
||||
|
||||
print_string_array :: proc(args: []string) {
|
||||
args[0] = "";
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
x := 0;
|
||||
|
||||
thing :: proc(n: int) -> int, f32 {
|
||||
return n*n, 13.37;
|
||||
}
|
||||
@@ -15,4 +16,5 @@ main :: proc() {
|
||||
thang :: proc(a: int, b: f32, s: string) {
|
||||
}
|
||||
|
||||
thang(thing(1), "Yep");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user