diff options
| author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-09-12 04:37:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-12 04:37:34 +0200 |
| commit | cc71012266f880dcf3b37e40d5f90d9ce8b7a432 (patch) | |
| tree | 6d3fd119b5beaf870fcd74b18e20ae4f5b6e62f6 /modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs | |
| parent | 0d04fb76e1d4543d04d6e41244c06f35bfecb07c (diff) | |
| parent | d21c64cc3b6623b55ca0ccac725db353ce8c06f1 (diff) | |
| download | redot-engine-cc71012266f880dcf3b37e40d5f90d9ce8b7a432.tar.gz | |
Merge pull request #21990 from neikeq/howwouldyounamethisbranch
C#/Mono fixes and enhancements
Diffstat (limited to 'modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs')
| -rw-r--r-- | modules/mono/glue/cs_files/Extensions/ObjectExtensions.cs | 6 |
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); } } |
