Statement expression with function-call variable lifetime
Daniel Jacobowitz
drow@false.org
Wed Jun 29 17:39:00 GMT 2005
On Wed, Jun 29, 2005 at 10:34:20AM -0700, Shaun Jackman wrote:
> the statement expression macro? My best idea was to use alloca, but it
> wouldn't look pretty. Can someone confirm that memory allocated with
> alloca would last the lifetime of the function call, and not the
> lifetime of the statement expression?
Yes, that's correct (and the only way to do this).
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gcc
mailing list