www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/24/08:56:27

Date: Thu, 24 Oct 1996 14:36:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT cs DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Borland library macro equivalent?
In-Reply-To: <326EE107.1659@cs.com>
Message-Id: <Pine.SUN.3.91.961024143529.9865N-100000@is>
Mime-Version: 1.0

On Wed, 23 Oct 1996, John M. Aldrich wrote:

> >         #define max(a,b) ({ typeof(a) _tmp_a = (a); \
> >                             typeof(b) _tmp_b = (b); \
> >                             (_tmp_a > _tmp_b) ? _tmp_a : _tmp_b; })
> 
> Is that C or C++ you're talking about?

That's C.  C++ has another neat extension: the >? operator.

- Raw text -


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