mirror of
https://github.com/ksherlock/x65.git
synced 2024-11-05 13:05:29 +00:00
Fix for enums
- enum assignment (=) was ignored
This commit is contained in:
parent
b1e9797160
commit
07b2b04763
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user