Re: svn commit: r34145 - in trunk: . subversion www
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 11 Nov 2008 19:57:32 +0000
On Tue, 2008-11-11 at 11:39 -0800, arfrever_at_tigris.org wrote:
> -#define Q_(x1, x2, n) (n == 1) ? x1 : x2
You should parenthesize each argument as well as the whole expression:
(((n) == 1) ? (x1) : (x2))
Otherwise invocations such as
Q_(item[0].is_dir ? "file" : "directory",
would go wrong.
Thanks.
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.