Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| gcc_extensions [2019/07/25 12:38] – [Labels as values] rpjday | gcc_extensions [2019/07/25 12:53] (current) – [Case ranges] rpjday | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | See " | ||
| + | |||
| + | ==== Nonlocal gotos ==== | ||
| + | |||
| + | Use '' | ||
| + | |||
| + | ==== Constructing function calls ==== | ||
| + | |||
| + | ==== typeof ==== | ||
| + | |||
| + | < | ||
| + | #define max(a,b) \ | ||
| + | ({ typeof (a) _a = (a); \ | ||
| + | typeof (b) _b = (b); \ | ||
| + | _a > _b ? _a : _b; }) | ||
| + | </ | ||
| + | |||
| + | ==== Conditionals ==== | ||
| + | |||
| + | Equivalent: | ||
| + | |||
| + | < | ||
| + | x ? x : y | ||
| + | x ? : y | ||
| + | </ | ||
| + | |||
| + | ==== Non-constant initializers ==== | ||
| + | |||
| + | ==== Designated initializers ==== | ||
| + | |||
| + | ==== Case ranges ==== | ||
| + | |||
| + | < | ||
| + | case low ... high: | ||
| + | </ | ||
| + | |||
| + | Don't forget spaces. | ||
| + | |||
| + | |||