From 31dd071e927ab4375db6c408c08ab776e4a5c655 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 2 Feb 2026 23:13:57 +0100 Subject: Change .fallthrough to __fallthrough__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implementing it as a control statement has the bad thing that it's impossible to be compatible with other assemblers such as ca65, as you cannot create dummy control statements or something like that in there. Instead of that, we define it with the special underscores which are still valid for identifiers, and give a "compiler-specific thingie" flair to it. This also has the benefit that the parser can be a bit more strict. Signed-off-by: Miquel Sabaté Solà --- tests/fallthrough.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/fallthrough.s') diff --git a/tests/fallthrough.s b/tests/fallthrough.s index 2340ee8..6e95b5e 100644 --- a/tests/fallthrough.s +++ b/tests/fallthrough.s @@ -8,14 +8,14 @@ .proc foo lda #0 - .fallthrough bar + __fallthrough__ bar .endproc -.fallthrough bar +__fallthrough__ bar .proc bar lda #0 - .fallthrough other + __fallthrough__ other .endproc .proc other -- cgit v1.2.3