aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-11-30 20:46:00 +0000
committerGinger Bill <bill@gingerbill.org>2016-11-30 20:46:00 +0000
commitbe8b9bda2f387048c53264da154a5c0373dfd316 (patch)
treee8aab89de09d75b149e3448ba6a15f48627ac6f0 /code
parentab2ca7cf5975b78c254b87fa5590be147853b79a (diff)
Delay importing entities till all other entities are collected
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin8
1 files changed, 2 insertions, 6 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 455dadb46..49936f79b 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -2,16 +2,12 @@
#import "utf8.odin"
main :: proc() {
-
+ MAX :: 64
buf: [MAX]rune
backing: [MAX]byte
offset: int
- when MAX > 0 {
- msg := "Hello"
- }
-
- MAX :: 64
+ msg := "Hello"
count := utf8.rune_count(msg)
assert(count <= MAX)