diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-09 22:48:00 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-09 22:48:00 +0000 |
| commit | eb4b3f5976d1563cd97841964e829fc638179cc5 (patch) | |
| tree | 4031277bf8d44d261a5c8a10ad2c62aed9e3dbfb /examples | |
| parent | dbb070524ffde7d392c6776dae41ea440b0e84c6 (diff) | |
Change push allocator system; update core libraries
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/demo.odin b/examples/demo.odin index a49301b41..8e6089fca 100644 --- a/examples/demo.odin +++ b/examples/demo.odin @@ -385,7 +385,7 @@ parametric_polymorphism :: proc() { c := context; if table.allocator.procedure != nil do c.allocator = table.allocator; - push_context c { + context <- c { table.slots = make_slice(type_of(table.slots), max(capacity, TABLE_SIZE_MIN)); } } @@ -394,7 +394,7 @@ parametric_polymorphism :: proc() { c := context; if table.allocator.procedure != nil do c.allocator = table.allocator; - push_context c { + context <- c { old_slots := table.slots; cap := max(2*cap(table.slots), TABLE_SIZE_MIN); @@ -559,7 +559,7 @@ threading_example :: proc() { } main :: proc() { - when true { + when false { fmt.println("\n# general_stuff"); general_stuff(); fmt.println("\n# default_struct_values"); default_struct_values(); fmt.println("\n# union_type"); union_type(); |