Skip to content
Permalink
Browse files
More information when [LIB]_EXPORT is missing
  • Loading branch information
m-kuhn committed Mar 30, 2017
1 parent b8159a9 commit 649e3c2b882800b85aac5d4304a70aad90157851
Showing with 2 additions and 1 deletion.
  1. +2 −1 scripts/sipify.pl
@@ -174,7 +174,8 @@
# class declaration started
if ( $line =~ m/^(\s*class)\s*([A-Z]+_EXPORT)?(\s+\w+)(\s*\:.*)?$/ ){
do {no warnings 'uninitialized';
$line =~ m/\b[A-Z]+_EXPORT\b/ or die "Class $headerfile shoud be exported with appropriate [LIB]_EXPORT macro.";
my $classname = $3;
$line =~ m/\b[A-Z]+_EXPORT\b/ or die "Class$classname in $headerfile shoud be exported with appropriate [LIB]_EXPORT macro. If this should not be available in python, wrap it in a `#ifndef SIP_RUN` block.";
};
$line = "$1$3";
# Inheritance

0 comments on commit 649e3c2

Please sign in to comment.