Re: [cc65] suppress output after .error/.end

From: thefox xofeht <>
Date: 2011-01-09 05:28:05
On Sat, Jan 8, 2011 at 8:50 PM, Ullrich von Bassewitz <> wrote:
> Hi!
> On Thu, Jan 06, 2011 at 08:21:38AM +0200, thefox xofeht wrote:
>> I'm using .error for some asserts in a header file (the header
>> requires the user to define couple of symbols before including it). Is
>> it possible to suppress any compiler output after .error has been
>> used? Currently ca65 happily evalutes the following code and gives
>> additional errors, which makes the output kinda cluttered, making it
>> difficult to spot the actual error.
> There are several ways ca65 could be changed to allow that. The first one is
> to disable any checks when .end is used. Another one would be to introduce
> something like .fatal in addition to .error, which would print a message and
> terminate assembly immediately.
> I don't know which one is better. Maybe the second one has less side effects.
> Opinions anyone?

Are there any messages besides "Error: Conditional assembly branch was
never closed" that can occur after .end? If it's a special case, maybe
you could add a flag like "if user terminated the assembly (i.e. used
.end), skip these checks".

I don't really like .fatal, because .error is also "fatal".

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jan 9 05:28:22 2011

This archive was generated by hypermail 2.1.8 : 2011-01-09 05:28:25 CET