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

Re: svn trunk r15052: FAIL (win32 ra_local)

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-06-14 21:45:33 CEST

kfogel@collab.net wrote:
> Hmmm. It looks like my r15051 changes caused the breakage below
> (search for "libsvn_ra_dav\commit.c" below). But I'm puzzled about
> the error message. It's like the compiler (or preprocessor) is saying
> that it doesn't even understand the "#if" syntax.

>>D:\svnbuild\src-trunk\subversion\libsvn_ra_dav\commit.c(217) : error C2121: '#' : invalid character : possibly the result of a macro expansion

Well, that's a "#if" within the argument list to a pre-processor macro
(SVN_ERR)... I wouldn't have guessed, but it sounds perfectly locical thinking
about it now that the preprocessor would pass this "#if" line as part of the
argument to the macro, rather than processing the "#if" first.

So, I guess you can't use preprocessor statements within the arguments to a
preprocessor macro.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 14 21:46:29 2005

This is an archived mail posted to the Subversion Dev mailing list.