aboutsummaryrefslogtreecommitdiff
path: root/code/demo.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-16 11:38:20 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-16 11:38:20 +0100
commit968de5aae886e87f395533283c17d77f31eabd0d (patch)
tree9ce5f4b7726c52c6737e65a5c34ca7123df049b7 /code/demo.odin
parent807256dea4d22550ee5da48e806b4e773670fbfc (diff)
Call expression, either handle all or ignore all results.
Diffstat (limited to 'code/demo.odin')
-rw-r--r--code/demo.odin24
1 files changed, 18 insertions, 6 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 4fca39f63..4909a3e72 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,16 +1,28 @@
-#import "runtime.odin" as _
-#import "punity.odin" as punity
+#import "punity.odin" as pn
+#import "fmt.odin" as fmt
+test :: proc() {
+ thing :: proc() {
+ thing :: proc() {
+ fmt.println("Hello1")
+ }
+ fmt.println("Hello")
+ }
+}
main :: proc() {
- init :: proc() {
+ test()
- }
+ init :: proc(c: ^pn.Core) {
- step :: proc() {
+ }
+ step :: proc(c: ^pn.Core) {
+ if pn.key_down(pn.Key.ESCAPE) {
+ c.running = false
+ }
}
- punity.run(init, step)
+ pn.run(init, step)
}