Re: Prohibit use of break/continue in a statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can use statement expression to get rid of the for-loop within MACRO(),
since it'll provide a new
scope for variables you define within the statement expr, i.e. instead of
`for (...) { /* code */ }` use
`({ /* code */ })`.

Cheers,
Al

On Mon, Jan 31, 2022 at 12:44 PM Hirrolot <hirrolot@xxxxxxxxx> wrote:

> How statement expressions can help? The documentation says
> `break`/`continue` are allowed in statement expressions, if I
> understand it correctly.
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux