Added assert macro

This commit is contained in:
jgromes 2020-01-13 16:36:21 +01:00
parent b000b0e289
commit 2332f2e327

View file

@ -81,6 +81,11 @@
#define NC (-1)
#endif
/*!
\brief A simple assert macro, will return on error.
*/
#define RADIOLIB_ASSERT(STATEVAR) { if(STATEVAR != ERR_NONE) { return(STATEVAR); } }
/*!
\defgroup shield_config Shield Configuration