Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ RETURN_IF

#define RETURN_IF ( is_true,
ret_val )
Value:
do \
{ \
if ((is_true)) { return ret_val; } \
} \
while (0)

Macro for verifying that the provided condition is true. It will cause the exterior function to return an error value if it is not.

Parameters
[in]is_trueBoolean condition to check.
[in]ret_valThe value to be returned if the checks fails