Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!cs.utexas.edu!execu!sequoia!rpp386!puzzle!khijol!erc From: erc@khijol.UUCP (Edwin R. Carp) Newsgroups: comp.lang.c Subject: Re: C's Limited Macro Capabilities Message-ID: <421@khijol.UUCP> Date: 5 Dec 89 04:27:11 GMT References: <69517@psuecl.bitnet> Reply-To: erc@khijol.UUCP (Edwin R. Carp) Organization: Deadly Force, Inc., aka Clint Eastwood School of Diplomacy Lines: 19 In article <69517@psuecl.bitnet> bpm@psuecl.bitnet (Brian Moquin) writes: > #define cast(flag,x) #if flag=='I' \ > ((int)(x)) \ > #elif flag=='F' \ > ((float)(x)) \ > #endif Couldn't you do the same thing with: #if flag=='I' #define cast(flag,x) ((int)(x)) #elif flag=='F' #define cast(flag,x) ((flaot)(x)) #endif ----------------------------------- cut here ----------------------------------- Ed Carp N7EKG/5 (28.3-28.5) erc@puzzle!khijol Austin, Tx; (home) (512) 445-2044 Snail Mail: 1800 E. Stassney #1205 Austin, Tx 78744