From d76806d322c4618f703347751f36feb35ef2d9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 25 Nov 2020 14:08:17 +0100 Subject: Core: Always enable ptrcall, remove PTRCALL_ENABLED define ptrcall is now also used to optimize calls in GDScript, on top of the existing use by the GDNative and Mono modules. It no longer makes sense to make it optional. --- core/object/reference.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/object/reference.h') diff --git a/core/object/reference.h b/core/object/reference.h index 575f1cd914..0eb127f362 100644 --- a/core/object/reference.h +++ b/core/object/reference.h @@ -252,8 +252,6 @@ public: WeakRef() {} }; -#ifdef PTRCALL_ENABLED - template struct PtrToArg> { _FORCE_INLINE_ static Ref convert(const void *p_ptr) { @@ -272,8 +270,6 @@ struct PtrToArg &> { } }; -#endif // PTRCALL_ENABLED - #ifdef DEBUG_METHODS_ENABLED template -- cgit v1.2.3