summaryrefslogtreecommitdiffstats
path: root/core/variant/variant.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/variant/variant.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/variant/variant.h')
-rw-r--r--core/variant/variant.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h
index 26280948be..d87078b5da 100644
--- a/core/variant/variant.h
+++ b/core/variant/variant.h
@@ -370,7 +370,6 @@ public:
#ifdef NEED_LONG_INT
Variant(signed long p_long); // real one
Variant(unsigned long p_long);
-//Variant(long unsigned int p_long);
#endif
Variant(signed short p_short); // real one
Variant(unsigned short p_short);
@@ -471,10 +470,8 @@ public:
static Variant::Type get_operator_return_type(Operator p_operator, Type p_type_a, Type p_type_b);
typedef void (*ValidatedOperatorEvaluator)(const Variant *left, const Variant *right, Variant *r_ret);
static ValidatedOperatorEvaluator get_validated_operator_evaluator(Operator p_operator, Type p_type_a, Type p_type_b);
-#ifdef PTRCALL_ENABLED
typedef void (*PTROperatorEvaluator)(const void *left, const void *right, void *r_ret);
static PTROperatorEvaluator get_ptr_operator_evaluator(Operator p_operator, Type p_type_a, Type p_type_b);
-#endif
void zero();
Variant duplicate(bool deep = false) const;