Analog Devices Wi-Fi Software Reference Manual  Release 1.0.0
adi_error_handling.h
Go to the documentation of this file.
1 
57 #ifndef ADI_BLE_COMMON_H
58 #define ADI_BLE_COMMON_H
59 
60 
61 #include <stdint.h>
62 #include <assert.h>
63 
64 
65 #ifdef ADI_DEBUG
66 
67  #define ASSERT(x) assert(x)
68 #else
69 
70  #define ASSERT(x)
71 #endif
72 
73 
75 #define RETURN_ERROR(result, expected, value) \
76 do {\
77  if ((expected) != (result))\
78  {\
79  return (value); \
80  }\
81 } while (0)
82 
83 
84 #endif /* ADI_BLE_COMMON_H */
85 
86 
87 /* @} */