mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Helpful error message for invalid -define: cases
This commit is contained in:
@@ -1038,6 +1038,7 @@ bool parse_build_flags(Array<String> args) {
|
|||||||
if (v.kind != ExactValue_Invalid) {
|
if (v.kind != ExactValue_Invalid) {
|
||||||
map_set(&build_context.defined_values, key, v);
|
map_set(&build_context.defined_values, key, v);
|
||||||
} else {
|
} else {
|
||||||
|
gb_printf_err("Invalid define constant value: '%.*s'. Define constants must be a valid Odin literal.\n", LIT(value));
|
||||||
bad_flags = true;
|
bad_flags = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user