[sipify] allow exception to required _EXPORT macros

This commit is contained in:
Denis Rouzaud 2017-06-15 07:39:16 +02:00
parent 585e9ed76e
commit 83c440448b
2 changed files with 5 additions and 1 deletions

View File

@ -591,7 +591,7 @@ while ($LINE_IDX < $LINE_COUNT){
pop(@GLOB_BRACKET_NESTING_IDX);
pop(@ACCESS);
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.")
if $EXPORTED[-1] == 0;
if $EXPORTED[-1] == 0 and not $CLASSNAME[$#CLASSNAME] ~~ $SIP_CONFIG->{no_export_macro};
pop @EXPORTED;
}
pop(@CLASSNAME);

View File

@ -2,3 +2,7 @@
class_headerfile:
QgsAbstractFeatureIteratorFromSource: qgsfeatureiterator.h
no_export_macro:
- QgsRange
- QgsTemporalRange