axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axl_bool axl_error_was_ok ( axlError _error)

Allows to check if the provided reference was used to report an error.

Those APIs that return an axlError reference filled with the textual error diagnostic, can take advantage of this function. It Allows to check if the error was used to report an error, instead of checking a returning value containing a particular error code.

See axl_error_new for more information.

_errorThe error that is being checked.
axl_true if the error reference doesn't contains an "ERROR" (an error wasn't reported), otherwise, axl_false is returned.

References axl_false, and axl_true.