mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
[sipify] close type header code earlier
This commit is contained in:
parent
00fecc29bb
commit
3a08533103
@ -1571,6 +1571,10 @@ while CONTEXT.line_idx < CONTEXT.line_count:
|
||||
continue
|
||||
|
||||
if re.match(r"^\s*#ifdef SIP_RUN", CONTEXT.current_line):
|
||||
# TYPE HEADER CODE
|
||||
if CONTEXT.header_code and not CONTEXT.sip_run:
|
||||
CONTEXT.header_code = False
|
||||
write_output("HCE", "%End\n")
|
||||
CONTEXT.sip_run = True
|
||||
if CONTEXT.access[-1] == Visibility.Private:
|
||||
dbg_info("writing private content (1)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user