Added ERR_FAIL_V_MSG error macro aswell.

This commit is contained in:
Relintai 2022-02-04 11:32:07 +01:00
parent 5503e58d54
commit f5d525948b

View File

@ -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, ""); \