mirror of
https://github.com/ksherlock/x65.git
synced 2025-08-11 14:25:26 +00:00
Fix for enums
- enum assignment (=) was ignored
This commit is contained in:
2
x65.cpp
2
x65.cpp
@@ -2379,7 +2379,7 @@ StatusCode Asm::BuildEnum(strref name, strref declaration)
|
|||||||
line = line.before_or_full(',');
|
line = line.before_or_full(',');
|
||||||
line.trim_whitespace();
|
line.trim_whitespace();
|
||||||
strref name = line.split_token_trim('=');
|
strref name = line.split_token_trim('=');
|
||||||
line = line.before(';').before(c_comment).get_trimmed_ws();
|
line = line.before_or_full(';').before_or_full(c_comment).get_trimmed_ws();
|
||||||
if (line) {
|
if (line) {
|
||||||
StatusCode error = EvalExpression(line, etx, value);
|
StatusCode error = EvalExpression(line, etx, value);
|
||||||
if (error == STATUS_NOT_READY || error == STATUS_XREF_DEPENDENT)
|
if (error == STATUS_NOT_READY || error == STATUS_XREF_DEPENDENT)
|
||||||
|
Reference in New Issue
Block a user