@@ -175,7 +175,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
175175#define ERR_FAIL_INDEX_V (m_index, m_size, m_retval ) \
176176 if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \
177177 _err_print_index_error (FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR (m_index), _STR (m_size)); \
178+ GODOT_DEPRECATED_BEGIN \
178179 return m_retval; \
180+ GODOT_DEPRECATED_END \
179181 } else \
180182 ((void )0 )
181183
@@ -186,7 +188,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
186188#define ERR_FAIL_INDEX_V_MSG (m_index, m_size, m_retval, m_msg ) \
187189 if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \
188190 _err_print_index_error (FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR (m_index), _STR (m_size), m_msg); \
191+ GODOT_DEPRECATED_BEGIN \
189192 return m_retval; \
193+ GODOT_DEPRECATED_END \
190194 } else \
191195 ((void )0 )
192196
@@ -196,7 +200,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
196200#define ERR_FAIL_INDEX_V_EDMSG (m_index, m_size, m_retval, m_msg ) \
197201 if (unlikely((m_index) < 0 || (m_index) >= (m_size))) { \
198202 _err_print_index_error (FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR (m_index), _STR (m_size), m_msg, true ); \
203+ GODOT_DEPRECATED_BEGIN \
199204 return m_retval; \
205+ GODOT_DEPRECATED_END \
200206 } else \
201207 ((void )0 )
202208
@@ -278,7 +284,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
278284#define ERR_FAIL_UNSIGNED_INDEX_V (m_index, m_size, m_retval ) \
279285 if (unlikely((m_index) >= (m_size))) { \
280286 _err_print_index_error (FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR (m_index), _STR (m_size)); \
287+ GODOT_DEPRECATED_BEGIN \
281288 return m_retval; \
289+ GODOT_DEPRECATED_END \
282290 } else \
283291 ((void )0 )
284292
@@ -289,7 +297,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
289297#define ERR_FAIL_UNSIGNED_INDEX_V_MSG (m_index, m_size, m_retval, m_msg ) \
290298 if (unlikely((m_index) >= (m_size))) { \
291299 _err_print_index_error (FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR (m_index), _STR (m_size), m_msg); \
300+ GODOT_DEPRECATED_BEGIN \
292301 return m_retval; \
302+ GODOT_DEPRECATED_END \
293303 } else \
294304 ((void )0 )
295305
@@ -299,7 +309,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
299309#define ERR_FAIL_UNSIGNED_INDEX_V_EDMSG (m_index, m_size, m_retval, m_msg ) \
300310 if (unlikely((m_index) >= (m_size))) { \
301311 _err_print_index_error (FUNCTION_STR, __FILE__, __LINE__, m_index, m_size, _STR (m_index), _STR (m_size), m_msg, true ); \
312+ GODOT_DEPRECATED_BEGIN \
302313 return m_retval; \
314+ GODOT_DEPRECATED_END \
303315 } else \
304316 ((void )0 )
305317
@@ -381,7 +393,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
381393#define ERR_FAIL_NULL_V (m_param, m_retval ) \
382394 if (unlikely(m_param == nullptr )) { \
383395 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Parameter \" " _STR (m_param) " \" is null." ); \
396+ GODOT_DEPRECATED_BEGIN \
384397 return m_retval; \
398+ GODOT_DEPRECATED_END \
385399 } else \
386400 ((void )0 )
387401
@@ -392,7 +406,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
392406#define ERR_FAIL_NULL_V_MSG (m_param, m_retval, m_msg ) \
393407 if (unlikely(m_param == nullptr )) { \
394408 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Parameter \" " _STR (m_param) " \" is null." , m_msg); \
409+ GODOT_DEPRECATED_BEGIN \
395410 return m_retval; \
411+ GODOT_DEPRECATED_END \
396412 } else \
397413 ((void )0 )
398414
@@ -402,7 +418,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
402418#define ERR_FAIL_NULL_V_EDMSG (m_param, m_retval, m_msg ) \
403419 if (unlikely(m_param == nullptr )) { \
404420 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Parameter \" " _STR (m_param) " \" is null." , m_msg, true ); \
421+ GODOT_DEPRECATED_BEGIN \
405422 return m_retval; \
423+ GODOT_DEPRECATED_END \
406424 } else \
407425 ((void )0 )
408426
@@ -458,7 +476,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
458476#define ERR_FAIL_COND_V (m_cond, m_retval ) \
459477 if (unlikely(m_cond)) { \
460478 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Condition \" " _STR (m_cond) " \" is true. Returning: " _STR (m_retval)); \
479+ GODOT_DEPRECATED_BEGIN \
461480 return m_retval; \
481+ GODOT_DEPRECATED_END \
462482 } else \
463483 ((void )0 )
464484
@@ -472,7 +492,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
472492#define ERR_FAIL_COND_V_MSG (m_cond, m_retval, m_msg ) \
473493 if (unlikely(m_cond)) { \
474494 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Condition \" " _STR (m_cond) " \" is true. Returning: " _STR (m_retval), m_msg); \
495+ GODOT_DEPRECATED_BEGIN \
475496 return m_retval; \
497+ GODOT_DEPRECATED_END \
476498 } else \
477499 ((void )0 )
478500
@@ -482,7 +504,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
482504#define ERR_FAIL_COND_V_EDMSG (m_cond, m_retval, m_msg ) \
483505 if (unlikely(m_cond)) { \
484506 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Condition \" " _STR (m_cond) " \" is true. Returning: " _STR (m_retval), m_msg, true ); \
507+ GODOT_DEPRECATED_BEGIN \
485508 return m_retval; \
509+ GODOT_DEPRECATED_END \
486510 } else \
487511 ((void )0 )
488512
@@ -636,7 +660,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
636660#define ERR_FAIL_V (m_retval ) \
637661 if (true ) { \
638662 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Method/function failed. Returning: " _STR (m_retval)); \
663+ GODOT_DEPRECATED_BEGIN \
639664 return m_retval; \
665+ GODOT_DEPRECATED_END \
640666 } else \
641667 ((void )0 )
642668
@@ -649,7 +675,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
649675#define ERR_FAIL_V_MSG (m_retval, m_msg ) \
650676 if (true ) { \
651677 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Method/function failed. Returning: " _STR (m_retval), m_msg); \
678+ GODOT_DEPRECATED_BEGIN \
652679 return m_retval; \
680+ GODOT_DEPRECATED_END \
653681 } else \
654682 ((void )0 )
655683
@@ -659,7 +687,9 @@ void _physics_interpolation_warning(const char *p_function, const char *p_file,
659687#define ERR_FAIL_V_EDMSG (m_retval, m_msg ) \
660688 if (true ) { \
661689 _err_print_error (FUNCTION_STR, __FILE__, __LINE__, " Method/function failed. Returning: " _STR (m_retval), m_msg, true ); \
690+ GODOT_DEPRECATED_BEGIN \
662691 return m_retval; \
692+ GODOT_DEPRECATED_END \
663693 } else \
664694 ((void )0 )
665695
0 commit comments