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...
Hm, perhaps we should let A.B without constant() around mean lookup B in A instead? I don't think that currently means anything...
of course there is something to see. you mean to say that
#if GTK2.MINOR_VERSION >= 12
now works?
that's great!
greetings, martin.
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 one ".", and I think I forgot to support things starting with "." (like ".foo"), so I probably should fix that.
pike-devel@lists.lysator.liu.se