Delay importing entities till all other entities are collected
This commit is contained in:
1 parent
ab2ca7cf59
commit
be8b9bda2f
4 files changed
+141
-293
No files matched your search
+2
-6
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user