diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 10 | ||||
| -rw-r--r-- | code/old_demos/demo001.odin | 33 |
2 files changed, 28 insertions, 15 deletions
diff --git a/code/demo.odin b/code/demo.odin index 61516e5b7..805a9690b 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,6 +1,16 @@ #import "fmt.odin"; +#import "atomic.odin"; +#import "hash.odin"; +#import "math.odin"; +#import "mem.odin"; +#import "opengl.odin"; +#import "os.odin"; +#import "sync.odin"; +#import "utf8.odin"; main :: proc() { + i: int; + x: [dynamic]f64; defer free(x); append(^x, 2_000_000.500_000, 3, 5, 7); diff --git a/code/old_demos/demo001.odin b/code/old_demos/demo001.odin index 7e80f0d1b..c3fc0f663 100644 --- a/code/old_demos/demo001.odin +++ b/code/old_demos/demo001.odin @@ -6,21 +6,24 @@ // #import "punity.odin" as pn; main :: proc() { - // struct_padding() - // bounds_checking() - // type_introspection() - // any_type() - // crazy_introspection() - // namespaces_and_files() - // miscellany() - // ht.run() - // game.run() - // { - // init :: proc(c: ^pn.Core) {} - // step :: proc(c: ^pn.Core) {} - - // pn.run(init, step) - // } + struct_padding(); + bounds_checking(); + type_introspection(); + any_type(); + crazy_introspection(); + namespaces_and_files(); + miscellany(); + + /* + ht.run(); + game.run(); + { + init :: proc(c: ^pn.Core) {} + step :: proc(c: ^pn.Core) {} + + pn.run(init, step); + } + */ } struct_padding :: proc() { |