mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
f7a669d342
* Code cleanup * Fix some TODOs * Reduce heap allocation use and replace with arena allocation
21 lines
262 B
Odin
21 lines
262 B
Odin
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;
|
|
}
|
|
|
|
thang :: proc(a: int, b: f32, s: string) {
|
|
}
|
|
|
|
thang(thing(1), "Yep");
|
|
}
|