delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/11/25/17:07:50

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3FC3D7E6.97B87A40@phekda.freeserve.co.uk>
Date: Tue, 25 Nov 2003 22:29:58 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: C99 and assert
References: <Pine DOT OSF DOT 4 DOT 58 DOT 0311171215310 DOT 18135 AT sirppi DOT helsinki DOT fi>
<3FC27F1A DOT 61184929 AT phekda DOT freeserve DOT co DOT uk> <Pine DOT OSF DOT 4 DOT 58 DOT 0311251030350 DOT 13833 AT sirppi DOT helsinki DOT fi>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Esa A E Peuha wrote:
> 
> On Mon, 24 Nov 2003, Richard Dawe wrote:
> 
> > I have one question: Which version of gcc was the first to support
> > __func__? Does gcc 2.95.x support __func__? gcc 2.7.2.2?
> 
> The first version to support C99, I think.  That is irrelevant though,
> because any version of gcc in C99 mode will have __func__, while any
> version of gcc in strict C89 mode won't (or at least shouldn't).
[snip]

Maybe it would be good to have C99-standard assert available by default? E.g.:

    #if !defined(__STRICT_ANSI__) || (C99-defines)
    ...
    #endif

This may require some checking of the gcc version.

Note that gcc's C99 mode (-std=c99) didn't seem to do much, last time I tried
it. Maybe it's better in gcc 3.3.x?

Bye, Rich =]

-- 
Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ]

"You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019