From 4d7926fea97604a6b0e26c9c1e021ffe7351a5a1 Mon Sep 17 00:00:00 2001 From: sebaszm Date: Mon, 1 Jul 2024 21:27:47 +0200 Subject: [PATCH 1/2] [JsonGen] Ignore VARIABLE_IS_NOT_USED --- ProxyStubGenerator/default.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ProxyStubGenerator/default.h b/ProxyStubGenerator/default.h index dfa829d..d94c272 100644 --- a/ProxyStubGenerator/default.h +++ b/ProxyStubGenerator/default.h @@ -29,6 +29,7 @@ /* @define EXTERNAL */ /* @define DEPRECATED */ +/* @define VARIABLE_IS_NOT_USED */ typedef char TCHAR; typedef wchar_t WCHAR; From fe6b1d3323fe2e8887dea3b6b9302a260177ec38 Mon Sep 17 00:00:00 2001 From: sebaszm Date: Tue, 2 Jul 2024 08:58:33 +0200 Subject: [PATCH 2/2] Fix text for struct members --- JsonGenerator/source/header_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JsonGenerator/source/header_loader.py b/JsonGenerator/source/header_loader.py index a33d038..f50b5fe 100644 --- a/JsonGenerator/source/header_loader.py +++ b/JsonGenerator/source/header_loader.py @@ -283,7 +283,7 @@ def GenerateObject(ctype, was_typdef): required = [] for p in kind.vars: - name = p.name.lower() + name = p.meta.text if p.meta.text else p.name.lower() if isinstance(p.type, list): raise CppParseError(p, "%s: undefined type" % " ".join(p.type))