Bug Fixes: some assertions; variable inits;

Remove some dead code
This commit is contained in:
Ginger Bill
2016-09-24 22:55:17 +01:00
parent ff229054a1
commit 70f3361a34
11 changed files with 103 additions and 140 deletions

View File

@@ -1,25 +1,3 @@
#import "fmt.odin"
#import "os.odin"
#import "mem.odin"
main :: proc() {
y :: proc() -> (int, int) {
return x()
}
x :: proc() -> (int, int) {
return 1, 2
}
fmt.println(y())
arena: mem.Arena
mem.init_arena_from_context(^arena, 1000)
defer mem.free_arena(^arena)
push_allocator mem.arena_allocator(^arena) {
x := new(int)
x^ = 1337
fmt.println(x^)
}
}