You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/sipify.pl
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -392,10 +392,10 @@ sub detect_comment_block{
392
392
pop(@global_bracket_nesting_index);
393
393
pop(@ACCESS);
394
394
395
-
die"Class $classname in $headerfile should be exported with appropriate [LIB]_EXPORT macro. If this should not be available in python, wrap it in a `#ifndef SIP_RUN` block."
396
-
if$EXPORTED[-1] == 0;
395
+
die"Class $classname in $headerfile should be exported with appropriate [LIB]_EXPORT macro. If this should not be available in python, wrap it in a `#ifndef SIP_RUN` block."
396
+
if$EXPORTED[-1] == 0;
397
397
398
-
pop@EXPORTED;
398
+
pop@EXPORTED;
399
399
}
400
400
if ($#ACCESS == 0){
401
401
dbg_info("reached top level");
@@ -461,7 +461,7 @@ sub detect_comment_block{
461
461
if ( $line =~ m/^\s*struct(\s+\w+_EXPORT)?\s+\w+$/ ) {
462
462
dbg_info(" going to struct => public");
463
463
push@ACCESS, PUBLIC;
464
-
push@EXPORTED, 0;
464
+
push@EXPORTED, $EXPORTED[-1];
465
465
push@global_bracket_nesting_index, 0;
466
466
}
467
467
@@ -476,7 +476,7 @@ sub detect_comment_block{
476
476
my@template_inheritance_class = ();
477
477
do {no warnings 'uninitialized';
478
478
$classname = $3;
479
-
$EXPORTED[-1]++ if$line =~ m/\b[A-Z]+_EXPORT\b/;
479
+
$EXPORTED[-1]++ if$line =~ m/\b[A-Z]+_EXPORT\b/;
480
480
};
481
481
$line = "$1$3";
482
482
# Inheritance
@@ -634,10 +634,10 @@ sub detect_comment_block{
634
634
$line =~ s/\bnullptr\b/0/g;
635
635
$line =~ s/\s*=\s*default\b//g;
636
636
637
-
if( $line =~ /\w+_EXPORT/ ) {
638
-
$EXPORTED[-1]++;
639
-
$line =~ s/\b\w+_EXPORT\s+//g;
640
-
}
637
+
if( $line =~ /\w+_EXPORT/ ) {
638
+
$EXPORTED[-1]++;
639
+
$line =~ s/\b\w+_EXPORT\s+//g;
640
+
}
641
641
642
642
# remove constructor definition, function bodies, member initializing list
643
643
$SIP_RUN == 1 or detect_and_remove_following_body_or_initializerlist();
0 commit comments