Re: Numeric constants as strings
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Feb 20, 2007, 13:06 UTC
- Message-ID
- <ererl9$df0$1@sea.gmane.org>
- In-Reply-To
- <200702191103.00431.andyparkins@gmail.com>
Andy Parkins wrote:
Show 7 quoted lines
> 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