Skip to main content

odin_is_error

Checks whether the code returned from ODIN function calls represents an error or an actual result. This is used to easier work with certain functions that might return an error or a valid result like odin_audio_data_len. Internally this simply does (code >> 29) > 0.

Declaration
bool odin_is_error(OdinReturnCode code);

Parameters

code

The return code to be checked. See

OdinReturnCode

for details.

Declaration
OdinReturnCode code;

Returns

true if the code represents an error, otherwise false.

Return Type
bool