From 16579f4ec2356df31ab3c1caac8c42cc0f6c5b55 Mon Sep 17 00:00:00 2001 From: HaseenaSainul Date: Thu, 5 Sep 2024 05:36:21 -0400 Subject: [PATCH] ThreadId namespace change --- JsonGenerator/source/json_loader.py | 2 +- ProxyStubGenerator/CppParser.py | 2 +- ProxyStubGenerator/default.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/JsonGenerator/source/json_loader.py b/JsonGenerator/source/json_loader.py index 9c75a09..1f75bda 100644 --- a/JsonGenerator/source/json_loader.py +++ b/JsonGenerator/source/json_loader.py @@ -385,7 +385,7 @@ def cpp_class(self): @property def cpp_native_type(self): - return "Core::thread_id" + return "::thread_id" class JsonRefCounted(): diff --git a/ProxyStubGenerator/CppParser.py b/ProxyStubGenerator/CppParser.py index f0261ba..38b9e0b 100755 --- a/ProxyStubGenerator/CppParser.py +++ b/ProxyStubGenerator/CppParser.py @@ -185,7 +185,7 @@ def IsFixed(self): class ThreadId(BuiltinInteger): def __init__(self): - BuiltinInteger.__init__(self, fixed_size=True, name="Core::thread_id") + BuiltinInteger.__init__(self, fixed_size=True, name="::thread_id") def IsFixed(self): return self.fixed diff --git a/ProxyStubGenerator/default.h b/ProxyStubGenerator/default.h index 1c315db..9b39b54 100644 --- a/ProxyStubGenerator/default.h +++ b/ProxyStubGenerator/default.h @@ -45,6 +45,8 @@ namespace std { typedef __stubgen_undetermined_integer clock_t; } +typedef __stubgen_thread_id thread_id; + namespace __FRAMEWORK_NAMESPACE__ { namespace ProxyStub { @@ -53,7 +55,6 @@ namespace __FRAMEWORK_NAMESPACE__ { namespace Core { typedef __stubgen_instance_id instance_id; - typedef __stubgen_thread_id thread_id; typedef __stubgen_time Time; typedef uint32_t hresult;