summaryrefslogtreecommitdiffstats
path: root/core/object/reference.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-11-25 14:08:17 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-11-25 14:08:17 +0100
commitd76806d322c4618f703347751f36feb35ef2d9f2 (patch)
tree787848c9d1d78fc47a9a6cffe1de148c329e84e4 /core/object/reference.h
parent8c713fa9bf1084ddb9b48802b61f9818d57a622e (diff)
downloadredot-engine-d76806d322c4618f703347751f36feb35ef2d9f2.tar.gz
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.
Diffstat (limited to 'core/object/reference.h')
-rw-r--r--core/object/reference.h4
1 files changed, 0 insertions, 4 deletions
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 <class T>
struct PtrToArg<Ref<T>> {
_FORCE_INLINE_ static Ref<T> convert(const void *p_ptr) {
@@ -272,8 +270,6 @@ struct PtrToArg<const Ref<T> &> {
}
};
-#endif // PTRCALL_ENABLED
-
#ifdef DEBUG_METHODS_ENABLED
template <class T>