Adafruit Si5351 Library
asserts.h
Go to the documentation of this file.
1
4
#ifndef _ASSERTS_H_
5
#define _ASSERTS_H_
6
7
#include "
errors.h
"
8
9
/**************************************************************************/
19
/**************************************************************************/
20
#define ASSERT(condition, returnValue) \
21
do { \
22
if (!(condition)) { \
23
return (returnValue); \
24
} \
25
} while (0)
26
27
/**************************************************************************/
43
/**************************************************************************/
44
#define ASSERT_STATUS(sts) \
45
do { \
46
err_t status = (sts); \
47
if (ERROR_NONE != status) { \
48
return status; \
49
} \
50
} while (0)
51
52
#endif
errors.h
Generated by
1.8.13