Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] Re: (PR#3427) Remove noreturn attribute
Home

[Freeciv-Dev] Re: (PR#3427) Remove noreturn attribute

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3427) Remove noreturn attribute
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Feb 2003 01:13:39 -0800
Reply-to: rt@xxxxxxxxxxxxxx

Raimar Falke wrote:
> On Thu, Feb 27, 2003 at 09:19:18AM -0800, Reinier Post wrote:

> Next version without variadic arguments. Tested with gcc and icc6.

> +#define die(format, args...)    \
> +  do{                           \
> +    real_die(format , ## args); \
> +    exit(EXIT_FAILURE);         \
> +  } while(0)
> +

Um, those are variadic arguments.  These are very similar to the ones 
used by freelog for gcc, which we've been told are not portable 
(unfortunately I don't remember a reference on that).

I've never been able to get portable variadic arguments for macros.  I 
would really like to know how to do so, however.  See PR#2046.

jason




[Prev in Thread] Current Thread [Next in Thread]