Need help with quoting and the CPP

Brett Bergquist bergquis at nms.gdc.portal.com
Wed Apr 24 21:11:50 AEST 1991


Thanks to all that have responded.  I only have the non-ANSI CPP so
the stringize operator method will not work for me.  I cannot seem to
get the #define expanded before handing it to the QUOTE macro so I
took the hard way out and stopped being lazy and defined two #defines
(one without the quotes, and one with the quotes, ie.

#define STRING this is the unqouoted string
#define STRING_Q "this is the quoted string".

-- 
Brett M. Bergquist, Principal Engineer | "Remind me" ... "to write an
General DataComm, Inc.,                | "article on the compulsive reading
Middlebury, CT 06762                   | of news." - Stranger in a Strange Land
Email: bergquis at nms.gdc.portal.com  or ...!portal!gdc!nms!bergquis



More information about the Comp.lang.c mailing list