diff options
| author | Thakee Nathees <thakeenathees@gmail.com> | 2020-03-04 10:35:31 +0530 | 
|---|---|---|
| committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-03-04 10:35:31 +0530 | 
| commit | 08fef074c2054f4876e13a5ab097c2a87dab6bf3 (patch) | |
| tree | cf7d716e1c955ad14347217c06a927b318ae623f | |
| parent | 0e25f54755a5e37fe64e328b7cd3ce4058245f09 (diff) | |
error_macros.h typo fixed
| -rw-r--r-- | core/error_macros.h | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/core/error_macros.h b/core/error_macros.h index 4a3ea28957..e4d7609e04 100644 --- a/core/error_macros.h +++ b/core/error_macros.h @@ -502,11 +502,11 @@ void _err_print_index_error(const char *p_function, const char *p_file, int p_li   *   * The current function returns `m_retval`.   */ -#define ERR_FAIL_V(m_retval)                                                                                      \ -	if (1) {                                                                                                      \ -		_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/Function Failed, returning: " __STR(m_value)); \ -		return m_retval;                                                                                          \ -	} else                                                                                                        \ +#define ERR_FAIL_V(m_retval)                                                                                       \ +	if (1) {                                                                                                       \ +		_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/Function Failed, returning: " __STR(m_retval)); \ +		return m_retval;                                                                                           \ +	} else                                                                                                         \  		((void)0)  /** @@ -515,11 +515,11 @@ void _err_print_index_error(const char *p_function, const char *p_file, int p_li   *   * Prints `m_msg`, and the current function returns `m_retval`.   */ -#define ERR_FAIL_V_MSG(m_retval, m_msg)                                                                                             \ -	if (1) {                                                                                                                        \ -		_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/Function Failed, returning: " __STR(m_value), DEBUG_STR(m_msg)); \ -		return m_retval;                                                                                                            \ -	} else                                                                                                                          \ +#define ERR_FAIL_V_MSG(m_retval, m_msg)                                                                                              \ +	if (1) {                                                                                                                         \ +		_err_print_error(FUNCTION_STR, __FILE__, __LINE__, "Method/Function Failed, returning: " __STR(m_retval), DEBUG_STR(m_msg)); \ +		return m_retval;                                                                                                             \ +	} else                                                                                                                           \  		((void)0)  /**  |