Re: [cc65] Possible bug?

From: Groepaz <>
Date: 2004-06-10 22:04:19
On Thursday 10 June 2004 08:36, Adam Dunkels wrote:

> > ? i've seen the first variant a couple of times now, but always used
> > the second one without problems ... so is there a reason to prefer the
> > first? (can you show an example where the second wouldnt work?)
> if(something())
>   disable_irq(n);
> else
>   enable_irq(n);
> This will give a syntax error because of the };else sequence.

aaaaahhhhhhhh ok :) must be my personal habit of always using curly braces
even if they arent really necessary (imho thats good programming style,
since it prevents errors when such a statement is extended).

now i'm wondering why noone i worked with ever complained about it :=P


To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jun 10 21:59:42 2004

This archive was generated by hypermail 2.1.8 : 2004-06-10 21:59:50 CEST