From f5d525948b77174eae675a74604051b94d514e1a Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 4 Feb 2022 11:32:07 +0100 Subject: [PATCH] Added ERR_FAIL_V_MSG error macro aswell. --- core/error_macros.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/error_macros.h b/core/error_macros.h index 4ed5add..099b669 100644 --- a/core/error_macros.h +++ b/core/error_macros.h @@ -35,6 +35,10 @@ Logger::_log_error(__FUNCTION__, __FILE__, __LINE__, msg); \ return; +#define ERR_FAIL_V_MSG(val, msg) \ + Logger::_log_error(__FUNCTION__, __FILE__, __LINE__, msg); \ + return val; + #define ERR_FAIL_INDEX(index, size) \ if ((index < 0) || (index >= size)) {\ Logger::_log_index_error(__FUNCTION__, __FILE__, __LINE__, index, size, ""); \