Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!shell!shell!rjohnson From: rjohnson@shell.com (Roy Johnson) Newsgroups: comp.lang.c Subject: Re: trouble with macro`s Message-ID: Date: 14 Mar 91 17:11:49 GMT References: <27489@netcom.COM> Sender: usenet@shell.shell.com (USENET News System) Organization: Shell Development Company, Bellaire Research Center, Houston, TX Lines: 16 In-Reply-To: aed@netcom.COM's message of 9 Mar 91 00:35:43 GMT In article <27489@netcom.COM> aed@netcom.COM (Andrew Davidson) writes: I belive that ansi preprocessors are supposed to support this as follows #define name2(a,b) a##b unfortuanly I am using a k&r compiler (I am working on a sun work station and can not change compilers) Instead of ##, use an empty comment: /**/ I've tried it, it works. Document it somewhere if the code is going to move. -- ======= !{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!rjohnson ======= Feel free to correct me, but don't preface your correction with "BZZT!" Roy Johnson, Shell Development Company