Skip to content

Commit

Permalink
Add line_continuations feature that works as .LINECONT but in a consi…
Browse files Browse the repository at this point in the history
…stent way with other features.
  • Loading branch information
vrubleg committed Oct 5, 2023
1 parent 1219379 commit c8df241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ca65/feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static const char* const FeatureKeys[FEAT_COUNT] = {
"bracket_as_indirect",
"string_escapes",
"long_jsr_jmp_rts",
"line_continuations",
};


Expand Down Expand Up @@ -121,6 +122,7 @@ void SetFeature (feature_t Feature, unsigned char On)
case FEAT_BRACKET_AS_INDIRECT: BracketAsIndirect = On; break;
case FEAT_STRING_ESCAPES: StringEscapes = On; break;
case FEAT_LONG_JSR_JMP_RTS: LongJsrJmpRts = On; break;
case FEAT_LINE_CONTINUATIONS: LineCont = On; break;
default: break;
}
}
1 change: 1 addition & 0 deletions src/ca65/feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ typedef enum {
FEAT_BRACKET_AS_INDIRECT,
FEAT_STRING_ESCAPES,
FEAT_LONG_JSR_JMP_RTS,
FEAT_LINE_CONTINUATIONS,

/* Special value: Number of features available */
FEAT_COUNT
Expand Down

0 comments on commit c8df241

Please sign in to comment.