This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Proposal


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]