Re: Is it better to use a macro or a function?



Johan Bengtsson wrote:

#define spt(ptr)(!(ptr))?NULL:ptr

This makes spt(ptr) equivalent to ptr.

would make it possible to write
s=spt(b)->s1;

No, it wouldn't.



Tim S
.