File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ sub fix_annotations {
223
223
$line =~ s /\b SIP_TRANSFERTHIS\b / \/ TransferThis\/ / ;
224
224
225
225
$line =~ s / SIP_PYNAME\(\s *(\w +)\s *\) / \/ PyName=$1 \/ / ;
226
+ $line =~ s / SIP_VIRTUALERRORHANDLER\(\s *(\w +)\s *\) / \/ VirtualErrorHandler=$1 \/ / ;
226
227
227
228
# combine multiple annotations
228
229
# https://regex101.com/r/uvCt4M/3
@@ -316,14 +317,14 @@ sub detect_comment_block{
316
317
}
317
318
318
319
# do not process SIP code %XXXCode
319
- if ( $SIP_RUN == 1 && $LINE =~ m / ^ *% *(MappedType|Type(?:Header)?Code|Module(?:Header)?Code|Convert(?:From|To)(?:Type|SubClass)Code|MethodCode)(.*)?$ / ){
320
+ if ( $SIP_RUN == 1 && $LINE =~ m / ^ *% *(VirtualErrorHandler| MappedType|Type(?:Header)?Code|Module(?:Header)?Code|Convert(?:From|To)(?:Type|SubClass)Code|MethodCode)(.*)?$ / ){
320
321
$LINE = " %$1$2 " ;
321
322
$COMMENT = ' ' ;
322
323
dbg_info(" do not process SIP code" );
323
324
while ( $LINE !~ m / ^ *% *End/ ){
324
325
write_output(" COD" , $LINE ." \n " );
325
326
$LINE = read_line();
326
- $LINE =~ s / ^ *% *(MappedType|Type(?:Header)?Code|Module(?:Header)?Code|Convert(?:From|To)(?:Type|SubClass)Code|MethodCode)(.*)?$/ %$1$2 / ;
327
+ $LINE =~ s / ^ *% *(VirtualErrorHandler| MappedType|Type(?:Header)?Code|Module(?:Header)?Code|Convert(?:From|To)(?:Type|SubClass)Code|MethodCode)(.*)?$/ %$1$2 / ;
327
328
$LINE =~ s / ^\s *SIP_END(.*)$/ %End$1 / ;
328
329
}
329
330
$LINE =~ s / ^\s *% End/ %End / ;
Original file line number Diff line number Diff line change 152
152
*/
153
153
#define SIP_CONVERT_TO_SUBCLASS_CODE (code )
154
154
155
+ /*
156
+ * Virtual error handler (/VirtualErrorHandler/)
157
+ */
158
+ #define SIP_VIRTUALERRORHANDLER (name )
159
+
155
160
/*
156
161
* Will insert a `%End` directive in sip files
157
162
*/
You can’t perform that action at this time.
0 commit comments