Path: utzoo!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!bcm!shell!shell!rjohnson From: rjohnson@shell.com (Roy Johnson) Newsgroups: comp.lang.c Subject: Re: trouble with macro`s Message-ID: Date: 18 Mar 91 15:51:40 GMT References: <27489@netcom.COM> <15485@smoke.brl.mil> Sender: usenet@shell.shell.com (USENET News System) Organization: Shell Development Company, Bellaire Research Center, Houston, TX Lines: 23 In-Reply-To: gwyn@smoke.brl.mil's message of 15 Mar 91 20:30:24 GMT In article <15485@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: In article rjohnson@shell.com (Roy Johnson) writes: >Instead of ##, use an empty comment: /**/ >I've tried it, it works. Document it somewhere if the code is going >to move. >Feel free to correct me, but don't preface your correction with "BZZT!" BONG! Sorry, I couldn't resist.. The /**/ kludge is not supposed to "work" (i.e. accomplish token pasting). However, in some implementations it does. It cannot work in any standard conforming implementation, however. BZZZT! ;^) The original question asked about how to do it on the Sun, since the ## which *should* work, doesn't, because sun cc is not ANSI- compliant. -- ======= !{sun,psuvax1,bcm,rice,decwrl,cs.utexas.edu}!shell!rjohnson ======= Feel free to correct me, but don't preface your correction with "BZZT!" Is it appropriate to post here about what's appropriate to post here? Roy Johnson, Shell Development Company