delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/25/14:28:43

From: bhodge AT gpu2 DOT srv DOT ualberta DOT ca (B Hodge)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Borland library macro equivalent?
Date: 23 Oct 1996 19:25:29 GMT
Organization: University of Alberta
Lines: 19
Message-ID: <54lrf9$ntu@pulp.ucs.ualberta.ca>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 961023132054 DOT 7645C-100000 AT is>
NNTP-Posting-Host: gpu2.srv.ualberta.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
: 	#define max(a,b) ({ typeof(a) _tmp_a = (a); \
: 			    typeof(b) _tmp_b = (b); \
: 			    (_tmp_a > _tmp_b) ? _tmp_a : _tmp_b; })

So then the following code would be legal?

x={ int s, c; s=sin(a); c=cos(a); s*s*y+s*c*y+c*c*y; };

Is this legal under other languages tooor is it just a DJGPP specific
thing?

(Don't rack your brain to hard at what it does, I just came up with a
random example :-)

-----------------------------------------
Blaine Hodge <bhodge AT gpu DOT srv DOT ualberta DOT ca>
Homepage: http://www.ualberta.ca/~bhodge/
"I am currently between signatures."  -me

- Raw text -


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