[runtime] Fix argument name confusion in the xamarin_gchandle_new[_weakref] methods. (#10952)
This way the argument names match the argument names in the corresponding Mono Embedding API. This is just an argument rename, no functional changes.
This commit is contained in:
Родитель
b30777f420
Коммит
1b658149ff
|
@ -2763,15 +2763,15 @@ xamarin_get_managed_method_for_token (guint32 token_ref, GCHandle *exception_gch
|
|||
}
|
||||
|
||||
GCHandle
|
||||
xamarin_gchandle_new (MonoObject *obj, bool track_resurrection)
|
||||
xamarin_gchandle_new (MonoObject *obj, bool pinned)
|
||||
{
|
||||
return GINT_TO_POINTER (mono_gchandle_new (obj, track_resurrection));
|
||||
return GINT_TO_POINTER (mono_gchandle_new (obj, pinned));
|
||||
}
|
||||
|
||||
GCHandle
|
||||
xamarin_gchandle_new_weakref (MonoObject *obj, bool pinned)
|
||||
xamarin_gchandle_new_weakref (MonoObject *obj, bool track_resurrection)
|
||||
{
|
||||
return GINT_TO_POINTER (mono_gchandle_new_weakref (obj, pinned));
|
||||
return GINT_TO_POINTER (mono_gchandle_new_weakref (obj, track_resurrection));
|
||||
}
|
||||
|
||||
MonoObject *
|
||||
|
|
|
@ -265,8 +265,8 @@ void xamarin_install_log_callbacks ();
|
|||
* until Mono's pointer-sized API is available for us.
|
||||
* Ref: https://github.com/dotnet/runtime/commit/3886a63841434af716292172737a42757a15c6a6
|
||||
*/
|
||||
GCHandle xamarin_gchandle_new (MonoObject *obj, bool track_resurrection);
|
||||
GCHandle xamarin_gchandle_new_weakref (MonoObject *obj, bool pinned);
|
||||
GCHandle xamarin_gchandle_new (MonoObject *obj, bool pinned);
|
||||
GCHandle xamarin_gchandle_new_weakref (MonoObject *obj, bool track_resurrection);
|
||||
MonoObject * xamarin_gchandle_get_target (GCHandle handle);
|
||||
void xamarin_gchandle_free (GCHandle handle);
|
||||
MonoObject * xamarin_gchandle_unwrap (GCHandle handle); // Will get the target and free the GCHandle
|
||||
|
|
Загрузка…
Ссылка в новой задаче