Re: [Vala] development for 0.12
- From: Jürg Billeter <j bitron ch>
- To: pancake <pancake youterm com>
- Cc: "vala-list gnome org" <vala-list gnome org>
- Subject: Re: [Vala] development for 0.12
- Date: Wed, 27 Oct 2010 08:30:27 +0200
On Wed, 2010-10-27 at 08:10 +0200, pancake wrote:
Is there any way to check at preprocessor stage for the version of
vala? Or I have to do this check outside (configure?) and then pass
the -D to valac?
#ifdef VALA10
... Old/stable stuff here
#else
.. New stuff here
#endif
#if VALA_0_12
... Code for Vala >= 0.11
#else
... Code for older Vala
#endif
This is implicitly defined and doesn't need -D.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]