cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/28/18:38:35

Message-ID: <36D9C885.4AD5B156@unb.ca>
Date: Sun, 28 Feb 1999 18:51:49 -0400
From: Endlisnis <s257m AT unb DOT ca>
X-Mailer: Mozilla 4.04 [en] (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
Subject: Re: sin, cos ??
References: <3 DOT 0 DOT 6 DOT 32 DOT 19990228075415 DOT 008acda0 AT pop DOT globalserve DOT net> <3 DOT 0 DOT 6 DOT 32 DOT 19990228114416 DOT 0097d4c0 AT pop DOT globalserve DOT net>
X-Info: BrunNet, Inc. 888-278-6638
Reply-To: djgpp AT delorie DOT com

Paul Derbyshire wrote:

> Can Nate make this work without side effect problems?
>
> #define MAX(a,b) (((a) > (b)) ? (a) : (b))
>
> (Hint: think MAX(i++, j++). <evil grin>)

    There is a documented way to do this with DJGPP [in the info pages] which is
something like:
#define MAX(a,b) {int la=a, lb=b; (la>lb)?la:lb;}

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlisnis AT BrunNet DOT Net
          Endlisnis AT HotMail DOT com




- Raw text -


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