|
From: | Paul Eggert |
Subject: | Re: [bug-gnulib] Re: [bug-gnulib] Re: new gnulib module "verify" for compile-time assertions |
Date: | Tue, 27 Sep 2005 13:47:41 -0700 |
User-agent: | Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Bruno Haible <address@hidden> writes: > What's the right syntax for using verify_true inside an enum initializer? Something like this: enum { abc = (verify_true (1 + 1 == 2) ? 7 : UINT_MAX) }; That's a little cute (it attempts to check that verify_true actually returns true, which isn't usually needed :-), but it's an example of what you can do with it.
[Prev in Thread] | Current Thread | [Next in Thread] |