diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-24 22:55:17 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-24 22:55:17 +0100 |
| commit | 70f3361a343ad6e2f53937d1949a2f1b6e9ef227 (patch) | |
| tree | 00f7e112c7104d807e83fb4af25a23c313991647 /code | |
| parent | ff229054a19a566309a1fea56384bfcdcd9fddad (diff) | |
Bug Fixes: some assertions; variable inits;
Remove some dead code
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/code/demo.odin b/code/demo.odin index a302c39c8..282adcb67 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -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^) - } } |