trouble with macro`s

Roy Johnson rjohnson at shell.com
Fri Mar 15 03:11:49 AEST 1991


In article <27489 at netcom.COM> aed at 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



More information about the Comp.lang.c mailing list