mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 12:07:45 +00:00
Delay importing entities till all other entities are collected
This commit is contained in:
@@ -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