diff --git a/src/TypeDef.h b/src/TypeDef.h index 6236b2be..a77bf6fe 100644 --- a/src/TypeDef.h +++ b/src/TypeDef.h @@ -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