Concatenating with a compile-time definition in "ANSI" CPP
    Jacob Gore 
    jacob at gore.com
       
    Sat Sep 23 10:47:00 AEST 1989
    
    
  
Can the following be achieved with "ANSI" cpp:
	MtaInit()
expands to
	SomeNameInit()
where Mta=SomeName is specified at compile-time, WITHOUT enumerating every
possible value of Mta in an #ifdef?
I want to be able to, for example, use -DMta=Sendmail in cc's command line,
and have that result in "MtaInit()" replaced with "SendmailInit()" in the code.
Is there a way to do this?
Jacob
--
Jacob Gore	Jacob at Gore.Com		{boulder,nucsrl}!gore!jacob
    
    
More information about the Comp.lang.c
mailing list