Style: Remove redundant DEBUG_METHODS_ENABLED
• Replaced with functionally identical and far more ubiquitous `DEBUG_ENABLED`
This commit is contained in:
@ -87,7 +87,7 @@ public:
|
||||
virtual bool is_valid() const override { return valid; }
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
virtual GodotTypeInfo::Metadata get_argument_meta(int p_arg) const override {
|
||||
if (p_arg < 0) {
|
||||
return return_value_metadata;
|
||||
@ -95,7 +95,7 @@ public:
|
||||
return arguments_metadata.get(p_arg);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
virtual Variant call(Object *p_object, const Variant **p_args, int p_arg_count, Callable::CallError &r_error) const override {
|
||||
#ifdef TOOLS_ENABLED
|
||||
@ -219,9 +219,9 @@ public:
|
||||
_set_returns(p_method_info->has_return_value);
|
||||
_set_const(p_method_info->method_flags & GDEXTENSION_METHOD_FLAG_CONST);
|
||||
_set_static(p_method_info->method_flags & GDEXTENSION_METHOD_FLAG_STATIC);
|
||||
#ifdef DEBUG_METHODS_ENABLED
|
||||
#ifdef DEBUG_ENABLED
|
||||
_generate_argument_types(p_method_info->argument_count);
|
||||
#endif
|
||||
#endif // DEBUG_ENABLED
|
||||
set_argument_count(p_method_info->argument_count);
|
||||
|
||||
Vector<Variant> defargs;
|
||||
|
||||
Reference in New Issue
Block a user