Yes, that's what I mean. This allows module defined constants to
replace macros in all cpp tests:
macro module constant
existence#if defined(foo) #if constant(Bar.foo)
numeric #if foo#if Bar.foo
The name of the constant needs to contain at least o
of course there is something to see.
you mean to say that
#if GTK2.MINOR_VERSION >= 12
now works?
that's great!
greetings, martin.
Ok, implemented. Problem solved. Nothing to see here. Move along
please. :-)
Hm, perhaps we should let A.B without constant() around mean lookup B
in A instead? I don't think that currently means anything...
Or I guess we _could_ modify the "constant()" cpp function so that it
returns an actual value rather than just 1/0, but that would probably
cause compatibility problems...
Sorry for not reponding to this for a while.
>Pike v7.8 release 469 running Hilfe v3.5 (Incremental Pike Frontend)
>> GTK2.GTK_MINOR_VERSION;
>(1) Result: 0
>> GTK2.MAJOR_VERSION;
>(2) Result: 2
>> GTK2.MINOR_VERSION;
>(3) Result: 20
>> GTK2.MICRO_VERSION;
>(4) Result: 1
Ok, fine, but I can't use
- Original Message
> From: "Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum"
><10...@lyskom.lysator.liu.se>
> To: pike-devel@lists.lysator.liu.se
> Sent: Tue, August 31, 2010 7:50:02 PM
> Subject: GTK2 Version
>
> Are the camel ca
Are the camel case just redundant copies of the first ones, or do they
mean different things?
GTK2 version is now available as a constant with the following:
Pike v7.8 release 469 running Hilfe v3.5 (Incremental Pike Frontend)
> GTK2.GTK_MINOR_VERSION;
(1) Result: 0
> GTK2.MAJOR_VERSION;
(2) Result: 2
> GTK2.MINOR_VERSION;
(3) Result: 20
> GTK2.MICRO_VERSION;
(4) Resu