14 lines
420 B
C
14 lines
420 B
C
#ifndef CKG_CM_ERROR_H_
|
|
#define CKG_CM_ERROR_H_
|
|
|
|
/* Error List */
|
|
#define CKG_CM_OK 0 // 0 or greater are sucessful
|
|
#define CKG_CM_ERROR -1 // negative is failure
|
|
#define CKG_CM_INVALIDARG -2 // Invalid arg as in NULL or the like
|
|
|
|
/* Macros for success/failure */
|
|
#define CKG_CM_SUCCESS(x) (CKG_CM_OK <= (x))
|
|
#define CKG_CM_FAILED(x) ((x) < CKG_CM_OK)
|
|
|
|
#endif
|