Added assert macro
This commit is contained in:
parent
b000b0e289
commit
2332f2e327
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue