Newsgroups: comp.std.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Macro substitution in character literals Message-ID: <1990Dec10.173255.805@zoo.toronto.edu> Organization: U of Toronto Zoology References: <11323@pt.cs.cmu.edu> <11327@pt.cs.cmu.edu> Date: Mon, 10 Dec 90 17:32:55 GMT In article <11327@pt.cs.cmu.edu> mbj@natasha.mach.cs.cmu.edu (Michael Jones) writes: >| How can I write a macro which produces a character literal containing a macro >| parameter? I'd like to be able to write something like: >| #define chr(c) 'c' /* Yes, this is incorrect */ >Oh, I should add that I'd like the result to be potentially usable as a value >in compile-time initialization expressions... Can't be done. -- "The average pointer, statistically, |Henry Spencer at U of Toronto Zoology points somewhere in X." -Hugh Redelmeier| henry@zoo.toronto.edu utzoo!henry