Re: [Vala] Conditional compilation: Passing #ifdefs through to generated C code
- From: Florian Brosch <flo brosch gmail com>
- To: Maciej Piechotka <uzytkownik2 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Conditional compilation: Passing #ifdefs through to generated C code
- Date: Thu, 26 Mar 2009 21:18:01 +0100
version ( condition ) {
}
else {
}
void my_method () {
[StaticIf]
if (vala.pkg.gtk+-2.0.version > 2.4.0") {
// Use new gtk+
} else {
// Use legacy gtk+
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]