Skip to content
Permalink
Browse files

[sipify] allow exception to required _EXPORT macros

  • Loading branch information
3nids committed Jun 15, 2017
1 parent 585e9ed commit 83c440448b345a017714c55633594518eba4c973
Showing with 5 additions and 1 deletion.
  1. +1 −1 scripts/sipify.pl
  2. +4 −0 scripts/sipify.yaml
@@ -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);
@@ -2,3 +2,7 @@

class_headerfile:
QgsAbstractFeatureIteratorFromSource: qgsfeatureiterator.h

no_export_macro:
- QgsRange
- QgsTemporalRange

0 comments on commit 83c4404

Please sign in to comment.
You can’t perform that action at this time.