summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs')
-rw-r--r--modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs b/modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs
index 5c9e6609f4..9ef0959750 100644
--- a/modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs
+++ b/modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs
@@ -1,4 +1,5 @@
using System;
+using System.Runtime.CompilerServices;
namespace Godot
{
@@ -11,7 +12,10 @@ namespace Godot
public static WeakRef WeakRef(Object obj)
{
- return NativeCalls.godot_icall_Godot_weakref(Object.GetPtr(obj));
+ return godot_icall_Object_weakref(Object.GetPtr(obj));
}
+
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ internal extern static WeakRef godot_icall_Object_weakref(IntPtr obj);
}
}