Re: [Vala] Check conditionals versions of Vala



Hello,

Le mercredi 6 février 2013, Olivier Duchateau a écrit :

Hi,

I wonder, if it exists preprocessors in Vala, or if it exists macro like
GLIB_CHECK_VERSION, but known by valac ?

I don't find any responses.


There are macros named GLIB_2_XX defined if glib version (as passed to
--target-glib option to the compiler) is greater than 2.XX. You can use
them for conditional compilation.

HTH,
Abderrahim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]