Rename gchandle to MGCHandle

This commit is contained in:
Wojciech Figat
2022-12-22 13:02:00 +01:00
parent 75130fcca3
commit 94c5211ee6
7 changed files with 26 additions and 26 deletions

View File

@@ -622,7 +622,7 @@ namespace MUtils
}
#endif
FORCE_INLINE gchandle NewGCHandle(MonoObject* obj, bool pinned)
FORCE_INLINE MGCHandle NewGCHandle(MonoObject* obj, bool pinned)
{
#if USE_NETCORE
return CoreCLR::NewGCHandle(obj, pinned);
@@ -631,7 +631,7 @@ namespace MUtils
#endif
}
FORCE_INLINE gchandle NewGCHandleWeakref(MonoObject* obj, bool track_resurrection)
FORCE_INLINE MGCHandle NewGCHandleWeakref(MonoObject* obj, bool track_resurrection)
{
#if USE_NETCORE
return CoreCLR::NewGCHandleWeakref(obj, track_resurrection);
@@ -640,7 +640,7 @@ namespace MUtils
#endif
}
FORCE_INLINE MonoObject* GetGCHandleTarget(const gchandle& handle)
FORCE_INLINE MonoObject* GetGCHandleTarget(const MGCHandle& handle)
{
#if USE_NETCORE
return (MonoObject*)CoreCLR::GetGCHandleTarget(handle);
@@ -649,7 +649,7 @@ namespace MUtils
#endif
}
FORCE_INLINE void FreeGCHandle(const gchandle& handle)
FORCE_INLINE void FreeGCHandle(const MGCHandle& handle)
{
#if USE_NETCORE
CoreCLR::FreeGCHandle(handle);