mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Added ERR_FAIL_V_MSG error macro aswell.
This commit is contained in:
parent
5503e58d54
commit
f5d525948b
@ -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, ""); \
|
||||
|
Loading…
Reference in New Issue
Block a user