Modified const and extern to always use blocks

This commit is contained in:
2025-04-05 19:34:50 +02:00
parent ba34637dc1
commit 543558a02b
16 changed files with 164 additions and 90 deletions

View File

@ -1,7 +1,9 @@
idtype const {
pid 1
}
const {
idtype {
pid 1
}
state const {
exited 0x4
state {
exited 0x4
}
}

View File

@ -1,9 +1,11 @@
user32 extern {
MessageBoxA(window *any, text *byte, title *byte, flags uint) -> int
}
main() {
title := "Title."
text := "Hi!"
user32.MessageBoxA(0, text, title, 0x240040)
}
extern {
user32 {
MessageBoxA(window *any, text *byte, title *byte, flags uint) -> int
}
}