From 9c78f34d98ad512b4444b744b9841d4739efbc04 Mon Sep 17 00:00:00 2001 From: sebaszm Date: Mon, 1 Jun 2026 09:55:57 +0200 Subject: [PATCH 1/2] Fix stop in included header --- ProxyStubGenerator/CppParser.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ProxyStubGenerator/CppParser.py b/ProxyStubGenerator/CppParser.py index 5ea4e8b9..c26d462f 100755 --- a/ProxyStubGenerator/CppParser.py +++ b/ProxyStubGenerator/CppParser.py @@ -1905,7 +1905,7 @@ def __Tokenize(contents,log = None): if skipmode: if "@_file" in token: skipmode = False - else: + elif token not in ['}', '{', ';']: continue def __ParseParameterValue(string, tag, mandatory=True, append=True, relay=None): @@ -2237,7 +2237,6 @@ def Parse(contents,log = None): omit_next = False stub_next = False object_next = False - autoobject_next = False json_next = False json_version = "" prefix_next = False @@ -2453,8 +2452,6 @@ def Parse(contents,log = None): if json_next: if object_next: object_next = False - if autoobject_next: - autoobject_next = False new_class.is_json = True new_class.json_version = json_version if event_next: @@ -2488,7 +2485,6 @@ def Parse(contents,log = None): json_next = False object_next = False - autoobject_next = False encode_enum_next = False wrap_next = False json_version = "" @@ -2594,7 +2590,6 @@ def Parse(contents,log = None): json_next = False object_next = False - autoobject_next = False encode_enum_next = False text_next = None From 35a4d3a5fd621a5895d07129dd0e4eac2162057c Mon Sep 17 00:00:00 2001 From: sebaszm <45654185+sebaszm@users.noreply.github.com> Date: Mon, 1 Jun 2026 14:01:44 +0200 Subject: [PATCH 2/2] Update CppParser.py add comment --- ProxyStubGenerator/CppParser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ProxyStubGenerator/CppParser.py b/ProxyStubGenerator/CppParser.py index c26d462f..a3dd44e3 100755 --- a/ProxyStubGenerator/CppParser.py +++ b/ProxyStubGenerator/CppParser.py @@ -1906,6 +1906,7 @@ def __Tokenize(contents,log = None): if "@_file" in token: skipmode = False elif token not in ['}', '{', ';']: + # ensure brackets are closed continue def __ParseParameterValue(string, tag, mandatory=True, append=True, relay=None):