On Sun, Mar 27, 2005 at 08:06:39PM -0500, Stas Bekman wrote:
> My problem is that I can't see how can I stick a call to 
> MP_CLONE_INSERT_OBJ() inside the mp_xs_APR__Pool_2obj(ptr) wrapper. Since 
> it's usually used as:
> 
>   RETVAL = mp_xs_APR__Pool_2obj(ptr);
> 
> Is there some C trick to have multiple statements in the macro so it can 
> be an rvalue? something like:
> 
>   RETVAL = do { MP_CLONE_INSERT_OBJ(ptr);  mp_xs_APR__Pool_2obj(ptr) };

RETVAL = ( stmt1, stmt2, rvalue );

will do what you're looking for, I think.

joe

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to