On Thu, 2009-03-26 at 21:18 +0100, Florian Brosch wrote:
> version ( condition ) {
> }
> else {
> }
> 
> 

Such code will not be easily extended for other version of checking I'm
afraid. I guess static_if would be better.

> 
> > void my_method () {
> >    [StaticIf]
> >    if (vala.pkg.gtk+-2.0.version > 2.4.0") {
> >        // Use new gtk+
> >    } else {
> >        // Use legacy gtk+
> >    }
> > }
> >

Regards

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to