mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
[sipify] exit type header code
This commit is contained in:
parent
69fa93556a
commit
244a7c1bd1
@ -1457,6 +1457,10 @@ while CONTEXT.line_idx < CONTEXT.line_count:
|
||||
|
||||
match = re.match(r"^\s*SIP_CONVERT_TO_SUBCLASS_CODE(.*)$", CONTEXT.current_line)
|
||||
if match:
|
||||
# TYPE HEADER CODE
|
||||
if CONTEXT.header_code and not re.match(r"^ *//.*$", CONTEXT.current_line):
|
||||
CONTEXT.header_code = False
|
||||
write_output("HCE", "%End\n")
|
||||
CONTEXT.current_line = f"%ConvertToSubClassCode{match.group(1)}"
|
||||
# Do not continue here, let the code process the next steps
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user