OpFlex Framework 1.7.0

Defines status codes and other basic definitions. More...

Macros

#define OF_ESUCCESS   0
 A successful error return.
 
#define OF_EFAILED   1
 A generic failure code.
 
#define OF_EMEMORY   2
 A failure caused by problems related to memory allocation.
 
#define OF_ELOGIC   10
 A generic logic error caused by errors in the user logic.
 
#define OF_EOUTOFRANGE   11
 You have requested data that is not available or is out of range for the requested type.
 
#define OF_EINVALID_ARG   12
 An argument to the function was invalid.
 
#define OF_ERUNTIME   10
 A generic runtime error.
 
#define OF_IS_SUCCESS(statusc)
 Check whether a status code is successful.
 
#define OF_IS_FAILURE(statusc)
 Check whether a status code is failed.
 

Typedefs

typedef int ofstatus
 An opflex status code.
 
typedef void * ofobj_p
 Base type for all OpFlex object pointers.
 
typedef uint64_t class_id_t
 A unique class ID.
 

Detailed Description

Defines status codes and other basic definitions.

Macro Definition Documentation

◆ OF_IS_FAILURE

#define OF_IS_FAILURE ( statusc)
Value:
(!OF_IS_SUCCESS(statusc))
#define OF_IS_SUCCESS(statusc)
Check whether a status code is successful.
Definition ofcore_c.h:74

Check whether a status code is failed.

◆ OF_IS_SUCCESS

#define OF_IS_SUCCESS ( statusc)
Value:
((statusc) == OF_ESUCCESS)
#define OF_ESUCCESS
A successful error return.
Definition ofcore_c.h:44

Check whether a status code is successful.