Hello,
are there plans to add constexpr as a GNU C extension?
Would it be possible to allow the "Statements and Declarations in Expressions"
extensions also for initial values of static variables?
http://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html#Statement-Exprs
Example:
#define maxint(a, b) \
({int _a = (a), _b = (b); _a > _b ? _a : _b; })
int a = maxint(1, 2);
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@xxxxxxxxxxxxxxxxxx
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.