Skip to content

Commit

Permalink
[sipify] allow exception to required _EXPORT macros
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 15, 2017
1 parent 585e9ed commit 83c4404
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sipify.pl
Expand Up @@ -591,7 +591,7 @@ sub detect_comment_block{
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);
Expand Down
4 changes: 4 additions & 0 deletions scripts/sipify.yaml
Expand Up @@ -2,3 +2,7 @@

class_headerfile:
QgsAbstractFeatureIteratorFromSource: qgsfeatureiterator.h

no_export_macro:
- QgsRange
- QgsTemporalRange

0 comments on commit 83c4404

Please sign in to comment.