Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!leah!bingvaxu!vu0310 From: vu0310@bingvaxu.cc.binghamton.edu (R. Kym Horsell) Newsgroups: comp.lang.c Subject: Re: Preprocessor macro to quote its argument Message-ID: <3867@bingvaxu.cc.binghamton.edu> Date: 20 Aug 90 07:59:55 GMT References: <1112@mti.mti.com> <3857@bingvaxu.cc.binghamton.edu> <1990Aug19.200440.8534@uunet!unhd> <3866@bingvaxu.cc.binghamton.edu> Reply-To: vu0310@bingvaxu.cc.binghamton.edu.cc.binghamton.edu (R. Kym Horsell) Organization: SUNY Binghamton, NY Lines: 14 Sorry about the bandwidth, but... If you *want* to quote something *after* is has been expanded try this: #define Q2(x) #x #define Q(x) Q2(x) #define foo bar main(){ puts(Q(foo)); } Ugly? But it works (if you've an ansii comp). -Kym Horsell