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: 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 Homepage: http://www.ualberta.ca/~bhodge/ "I am currently between signatures." -me