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

Re: hint for improved keyword substitution

From: Mycroft Holmes <psion.s5_at_gmail.com>
Date: Thu, 20 Mar 2008 11:51:30 +0100

On 19 Mar 2008, at 20:04, Erik Huelsmann wrote:
>> p.s: the standard approach of embedding a keyword string in
>> function is
>> waaaay limited: more work at runtime, can't use version numer in
>> preprocessor directives, can't use in templates... and I'm sure I
>> could list
>> some more serious limitations
> Right. Because I don't see how "using it in preprocessor directives"
> can be a serious limitation:

using? _not_ using.
a string literal, as I pointed out, has very limited usage.

the most general approach is to have a macro that resolves to an
_integer_ literal.
this enables, for example, statements like:

#if SVN_VERSION < 3000

  • application/pkcs7-signature attachment: smime.p7s
Received on 2008-03-20 11:52:06 CET

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