Jason Thorpe | 1 Apr 2003 06:21

Re: MALLOC vs. malloc: maybe use __builtin_constant_p?


On Monday, March 31, 2003, at 07:14  PM, cgd <at> broadcom.com wrote:

> Maybe "The Right Thing" is to have a single blessed version, which uses
> __builtin_constant_p() to check whether the arg is a constant, and
> evaluates into the macro or the fn based on that...

Yah, that's a pretty good idea...

I'll take a look while I'm on the plane Wednesday...

         -- Jason R. Thorpe <thorpej <at> wasabisystems.com>


Gmane