mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
[sipify] allow exception to required _EXPORT macros
This commit is contained in:
parent
585e9ed76e
commit
83c440448b
@ -591,7 +591,7 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
pop(@GLOB_BRACKET_NESTING_IDX);
|
pop(@GLOB_BRACKET_NESTING_IDX);
|
||||||
pop(@ACCESS);
|
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.")
|
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 @EXPORTED;
|
||||||
}
|
}
|
||||||
pop(@CLASSNAME);
|
pop(@CLASSNAME);
|
||||||
|
@ -2,3 +2,7 @@
|
|||||||
|
|
||||||
class_headerfile:
|
class_headerfile:
|
||||||
QgsAbstractFeatureIteratorFromSource: qgsfeatureiterator.h
|
QgsAbstractFeatureIteratorFromSource: qgsfeatureiterator.h
|
||||||
|
|
||||||
|
no_export_macro:
|
||||||
|
- QgsRange
|
||||||
|
- QgsTemporalRange
|
||||||
|
Loading…
x
Reference in New Issue
Block a user