Re: Using stringize and string concatenation in ghc preprocessing

2016-08-21 Thread Harendra Kumar
Thanks Mathieu. This works pretty well for gcc ( https://gcc.gnu.org/onlinedocs/cpp/Traditional-macros.html) but sadly it does not work for clang cpp as Brandon too pointed out earlier that clang does not have a traditional mode. -harendra On 22 August 2016 at 02:01, Boespflug, Mathieu wrote: >

Re: Using stringize and string concatenation in ghc preprocessing

2016-08-21 Thread Brandon Allbery
On Sun, Aug 21, 2016 at 4:31 PM, Boespflug, Mathieu wrote: > I ran into this very problem recently. Turns out -traditional knows string > concatenation too. I seem to remember learning this by browsing the GHC > source code, but now I can't find any occurrence of this pattern. But > here's an exa

Re: Using stringize and string concatenation in ghc preprocessing

2016-08-21 Thread Boespflug, Mathieu
Hi Harendra, I ran into this very problem recently. Turns out -traditional knows string concatenation too. I seem to remember learning this by browsing the GHC source code, but now I can't find any occurrence of this pattern. But here's an example of how to do string concatenation with CPP in -tra