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.
This commit is contained in:
Rémi Verschelde
2020-11-25 14:08:17 +01:00
parent 8c713fa9bf
commit d76806d322
11 changed files with 36 additions and 274 deletions

View File

@ -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>