Skip to content

%if with range version not working #47

@troopa81

Description

@troopa81

Following the documentation, I try to use %if condition with range versions to apply some code only for specific version of sip.

For instance, this should be parsed only when sip is bellow 5.1.0

%If ( - SIP_5_1_0)
void printTest() /UnknownAnnotation/;
%End

But it is parsed when I generate with sip-build 6.8

$ sip-build --version
6.8.6
sip-build: /home/julien/myconf/sip-examples/deprecated/deprecated.sip:
line 19: column 21: UnknownAnnotation is not a known annotation

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions