File DlErrorInternal.h¶
↰ Parent directory (DlSystem)
Definition (DlSystem/DlErrorInternal.h)¶
Includes¶
DlError.h(File DlError.h)
Functions¶
Defines¶
Full File Listing¶
Defines
-
VERBOSE_SNPE_CAPI_PRINT() do{}while(0)¶
-
SNPE_CAPI_SET_LAST_ERROR(err) Snpe_ErrorCode_setLastError(err, #err)¶
-
SNPE_CAPI_ASSERT(cond, err)
do{ \
if(!(cond)){ \
VERBOSE_SNPE_CAPI_PRINT(); \ Snpe_ErrorCode_setLastError((err), (#err)); \
} \
}while(0)
¶
-
SNPE_CAPI_ASSERT_RETURN(cond, err, ...)
do{ \
if(!(cond)){ \
VERBOSE_SNPE_CAPI_PRINT(); \ Snpe_ErrorCode_setLastError((err), (#err)); \
return __VA_ARGS__; \
} \
}while(0)
¶
-
SNPE_CAPI_ASSERT_RETURN_ERROR(cond, err) SNPE_CAPI_ASSERT_RETURN(cond, err, err)¶
-
SNPE_CAPI_ASSERT_RETURN_LASTERROR(cond)
do{ \
if(!(cond)) { \
VERBOSE_SNPE_CAPI_PRINT(); \
return
Snpe_ErrorCode_getLastErrorCode(); \
} \
}while(0)
¶
Functions
-
void Snpe_ErrorCode_setLastError(Snpe_ErrorCode_t code, const char *str)¶