|
@@ -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`.
|
|
* 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)
|
|
((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`.
|
|
* 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)
|
|
((void)0)
|
|
|
|
|
|
/**
|
|
/**
|