Proposal
Neil Booth
neil@daikokuya.demon.co.uk
Tue Sep 18 15:48:00 GMT 2001
Kevin Handy wrote:-
> Another option for this that I'd prefer would be to write
>
> #define MY_MERGE_3(a,b,c) (a*1000000 + b*1000 + c)
> #define MILLION MY_MERGE_3(1,000,000)
>
> which doesn't need the extension, and you get to use comma's as the
> separator which is what people normally expect. This example is
> somewhat stupid, in that the million (1000000) constant is also
> the MY_MERGE_3 definition, but you still get the idea.
Careful, those are octal numbers 8-)
Neil.
More information about the Gcc
mailing list