Bruno Haible <[EMAIL PROTECTED]> 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.


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to