Re: linux/macros.h(new) and linux/list.h(mod) ...

Davide Libenzi
2001-07-05T22:03:34Z

On 05-Jul-2001 Hua Zhong wrote:
>
> Doesn't it add more overhead? I think using inline functions are much
> better.
> Yes you have to define it for different types (char, short, int, long,
> signed/unsigned).

Yes it does.
Personally I know that min, max, etc... are macros and I never use unary
operators inside.
Maybe a "unsafe" __max() and a "safe" max() could coexist.

- Davide