From d5ffa42cd2420bdaa31d467e8e6e68b41133a038 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 1 Aug 2020 23:39:22 +0200 Subject: Add a test suite for Expression This also makes the first parameter of `Expression::execute()` optional from C++. Previously, it was only optional in the scripting API. --- core/math/expression.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math') diff --git a/core/math/expression.h b/core/math/expression.h index 59a9a2f4ed..f2cfe6b1a6 100644 --- a/core/math/expression.h +++ b/core/math/expression.h @@ -343,7 +343,7 @@ protected: public: Error parse(const String &p_expression, const Vector &p_input_names = Vector()); - Variant execute(Array p_inputs, Object *p_base = nullptr, bool p_show_error = true); + Variant execute(Array p_inputs = Array(), Object *p_base = nullptr, bool p_show_error = true); bool has_execute_failed() const; String get_error_text() const; -- cgit v1.2.3