Analog Devices Wi-Fi Software Reference Manual  Release 1.0.0
Macros

Macros

#define ASSERT(x)   assert(x)
 
#define RETURN_ERROR(result, expected, value)
 

Detailed Description

Macro Definition Documentation

§ ASSERT

#define ASSERT (   x)    assert(x)

Assert macro which maps to standard C assert in debug, nothing in release

§ RETURN_ERROR

#define RETURN_ERROR (   result,
  expected,
  value 
)
Value:
do {\
if ((expected) != (result))\
{\
return (value); \
}\
} while (0)

Returns "value" if "result" is not equal to "expected"