Use idiomatic templating vargs in a few places to reduce code.

This commit is contained in:
Lukas Tenbrink
2025-03-10 11:59:17 +01:00
parent 42c7f14422
commit df7dab4946
3 changed files with 4 additions and 38 deletions

View File

@@ -542,13 +542,8 @@ public:
#ifdef DEBUG_ENABLED
template <typename... P>
_FORCE_INLINE_ Vector<Error> errarray(P... p_args) {
return Vector<Error>({ p_args... });
}
#define BIND_METHOD_ERR_RETURN_DOC(m_method, ...) \
::ClassDB::set_method_error_return_values(get_class_static(), m_method, errarray(__VA_ARGS__));
::ClassDB::set_method_error_return_values(get_class_static(), m_method, Vector<Error>{ __VA_ARGS__ });
#else