> Hi Group-
> I want to use the C preprocessor to generate expanded text as a text
> processor for software test script generation. The preprocessor output will
> never be compiled. I need to insert newlines in the preprocessed output
> file but I can't figure out how to do it.
> Here's a stab at what I'm trying to do but failing:
> #define CMD(s) text s \
> enter \
> sleep 500
> CMD(mmem:mdir "a1")
> CMD(mmem:mdir "a2")
> I'd like to output a literal newline for every macro line continuation
> character ('\'). I know my example won't work but it's the closest I've
> been able to get to actually get the output that I'd like to get, which is:
> text mmem:mdir "a1"
> enter
> sleep 500
> text mmem:mdir "a2"
> enter
> sleep 500
> What I get instead is:
> text mmem:mdir "a1" enter sleep 500
> text mmem:mdir "a2" enter sleep 500
> The desired newlines are missing.
> Does anyone know how to get the C proeprocessor to output a literal newline
> using macros?
> Thanks, John.
With some preprocessors, it's possible that the sequence of characters