This is the mail archive of the gcc-bugs@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: Wish: __builtin_side_effect_free_p, __builtin_lvalue_p


On Wed, Feb 21, 2001 at 11:49:48AM +0100, Niels Möller wrote:
>   #define FOO(f, a) ((f)->foo((f), (a)))

Try

  #define FOO(f, a)  ({ __typeof(f) f_ = (f); f_->foo(f_, (a)); })


r~


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