[Haskell-beginners] Recursive macros in hsc2hs

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Wed Jul 15 00:21:55 EDT 2009


On Jul 14, 2009, at 22:51 , Maurí cio wrote:
> I'm trying to define a macro inside a template that generates
> an existing macro:


Won't fly; cpp doesn't scan its own output recursively, so if you  
generate a #define in a macro it will appear in the output  
unexpanded.  AFAIK cpphs is no different.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/beginners/attachments/20090715/6a8b43f7/PGP-0001.bin


More information about the Beginners mailing list