From: Jakub Narebski Date: Tue, 20 Feb 2007 13:06:42 GMT Subject: Re: Numeric constants as strings Message-ID: In-Reply-To: <200702191103.00431.andyparkins@gmail.com> Andy Parkins wrote: > On Monday 2007 February 19 10:04, Mark Wooding wrote: > >> #define STRINGIFY(foo) STRINGIFY_REALLY(foo) >> #define STRINGIFY_REALLY(foo) #foo >> printf("%-" STRINGIFY(HASH_WIDTH_ASCII) "s %s%s (%d subtrees)\n", > > Ah ha! Magical. You've taught me something there. Thanks. This trick is in the cpp documentation. (cpp.info.gz)Stringification -- Jakub Narebski Warsaw, Poland ShadeHawk on #git