[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1461775 - /subversion/trunk/subversion/include/svn_error.h

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 20 May 2013 14:47:21 +0100

Ivan Zhakov <ivan_at_visualsvn.com> writes:

> On Wed, Mar 27, 2013 at 10:39 PM, <cmpilato_at_apache.org> wrote:
>> Author: cmpilato
>> Date: Wed Mar 27 18:39:56 2013
>> New Revision: 1461775
>>
>> URL: http://svn.apache.org/r1461775
>> Log:
>> * subversion/include/svn_error.h
>> (SVN_ERR_ASSERT): Make this just a wrapper around SVN_ERR_ASSERT_E.
>>
> It seems to be incorrect change, because expr gets evaluated before
> expanding SVN_ERR_ASSERT_E macro and we get just expression value
> instead of expression itself. At least on Windows with VC10.

Could you give a bit more information. With GCC

    SVN_ERR_ASSERT(1+1==3);

produces

../src/subversion/svn/status-cmd.c:275: (apr_err=SVN_ERR_ASSERTION_FAIL)
svn: E235000: In file '../src/subversion/svn/status-cmd.c' line 275: assertion failed (1+1==3)
Aborted

Are you saying that VC10 produces something different?

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-05-20 15:47:58 CEST

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.