Open awwdev opened 1 year ago
Odin dev-2023-01 Windows
dev-2023-01
Test :: #config(Test, 0) main :: proc() { fmt.println(Test) }
Build flag:
-define:Test=35e4218
The compiler will silently crash (without an error message) and exit with code 1. Seems like the hexadecimal number is the problem.
Workaround: Prefix the hexadecimal number with 0x and the compiler will accept it.
0x
Looks like this is working now. Hexadecimal numbers not prefixed with 0x will be treated as strings.
Context
Odin
dev-2023-01
WindowsBug
Build flag:
The compiler will silently crash (without an error message) and exit with code 1. Seems like the hexadecimal number is the problem.
Workaround: Prefix the hexadecimal number with
0x
and the compiler will accept it.