Macro substitution in character literals
    Henry Spencer 
    henry at zoo.toronto.edu
       
    Tue Dec 11 04:32:55 AEST 1990
    
    
  
In article <11327 at pt.cs.cmu.edu> mbj at 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 at zoo.toronto.edu   utzoo!henry
    
    
More information about the Comp.std.c
mailing list