Closed mahSource closed 12 months ago
Thank you!
I think we removed the main function by mistake. Original code line 388 Need to likely add this back in so it will compile.
main :: proc() {
I think we removed the main function by mistake. Original code line 388 Need to likely add this back in so it will compile.
main :: proc() {
Good catch. But I'll just remove the top lines instead. The rest of the switch examples are also just about the switch, not its wider integration into a procedure.
The block causing errors is under the header: https://odin-lang.org/docs/overview/#switch-statement
(1) Suggested Corrections: Need to add .arm32, remove .wasm64, and add .wasm64p32 then it will work. o/w get error that need #partial switch, as well as undeclared name since .wasm64 was replaced with .wasm64p32 and it is missing .arm32.
(2) Suggested code update -- this works with no errors or warnings: