[Click] how to determine click version

Marco Canini marco at reti.dist.unige.it
Wed Oct 29 15:55:48 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Eddie,

the reason I was looking for it is that I want to use the new (kind of)
annotation functions.
But because I've not updated all the deployed versions of click I still
want to call set_user_anno where necessary.

cheers

Eddie Kohler wrote:
> Hi Marco,
> 
> Unfortunately, there was no support for anything like this.  But I just
> committed some support.
> 
> http://read.cs.ucla.edu/gitweb?p=click;a=commit;h=cc8028dc717291485275fd78284a5cda4a0a76bb
> 
> 
> But please tell us why you need this versioning?  Is there some code
> that worked in earlier versions that doesn't work now?
> 
> Eddie
> 
> 
> Marco Canini wrote:
> I can't figure out how to determine the click version in preprocessor
> code.
> Eventually, I want to obtain something like
> #if CLICK_VERSION == 1 && CLICK_MAJOR >= 6 && CLICK_MINOR >= 9
> code1
> #else
> code2
> #endif
> 
> Any idea?
> cheers
> 
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

- --
Marco Canini
Ph.D. Candidate
Department of Communication, Computer and System Sciences
University of Genoa
Via all'Opera Pia 13
16145 Genoa Italy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFJCL/EK52QDm/mFCkRAmTIAKDTti1Bj1Ilru5DCFtH2Bt8jud4NwCgy2A/
221Wg4dcO86hKwTgsaTQpAA=
=5o70
-----END PGP SIGNATURE-----


More information about the click mailing list