Skip to content

Commit 83c4404

Browse files
committed
[sipify] allow exception to required _EXPORT macros
1 parent 585e9ed commit 83c4404

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

scripts/sipify.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ sub detect_comment_block{
591591
pop(@GLOB_BRACKET_NESTING_IDX);
592592
pop(@ACCESS);
593593
exit_with_error("Class $CLASSNAME[$#CLASSNAME] should be exported with appropriate [LIB]_EXPORT macro. If this should not be available in python, wrap it in a `#ifndef SIP_RUN` block.")
594-
if $EXPORTED[-1] == 0;
594+
if $EXPORTED[-1] == 0 and not $CLASSNAME[$#CLASSNAME] ~~ $SIP_CONFIG->{no_export_macro};
595595
pop @EXPORTED;
596596
}
597597
pop(@CLASSNAME);

scripts/sipify.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
class_headerfile:
44
QgsAbstractFeatureIteratorFromSource: qgsfeatureiterator.h
5+
6+
no_export_macro:
7+
- QgsRange
8+
- QgsTemporalRange

0 commit comments

Comments
 (0)