1
0
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:
Carl-Henrik Skårstedt 2015-10-31 00:35:25 -07:00
parent b1e9797160
commit 07b2b04763

View File

@ -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)