From 244a7c1bd1df98ed93e6f2fbe5e6cb5a4724a3d7 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Wed, 4 Dec 2024 07:28:17 +0100 Subject: [PATCH] [sipify] exit type header code --- scripts/sipify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/sipify.py b/scripts/sipify.py index ea438289f90..af04bb2e180 100755 --- a/scripts/sipify.py +++ b/scripts/sipify.py @@ -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