Re: [cc65] return vs. exit()

From: Oliver Schmidt <ol.sc1web.de>
Date: 2009-10-18 22:49:06
Hi Uz,

>> > __attribute__((noreturn))
>>
>> Hm, somehow I have the feeling that I've seen this syntax already somewhere ;-)
>
> gcc does it this way.

Please note the ';-)' above...

> And the double parenthesis is enforced so you can use an
> empty macro
>
>        #define __attribute__()
>
> to remove the sequence for compilers that don't support it.

I wasn't aware of this. Thanks for the very useful hint!

Best, Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Oct 18 22:49:13 2009

This archive was generated by hypermail 2.1.8 : 2009-10-18 22:49:15 CEST