initial commit
This commit is contained in:
23
core/include/blue/core/status.h
Normal file
23
core/include/blue/core/status.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef BLUELIB_CORE_STATUS_H_
|
||||
#define BLUELIB_CORE_STATUS_H_
|
||||
|
||||
#define B_OK(status) ((status) == B_SUCCESS)
|
||||
#define B_ERR(status) ((status) != B_SUCCESS)
|
||||
|
||||
typedef enum {
|
||||
B_SUCCESS = 0x00u,
|
||||
B_ERR_NO_MEMORY,
|
||||
B_ERR_OUT_OF_BOUNDS,
|
||||
B_ERR_INVALID_ARGUMENT,
|
||||
B_ERR_NAME_EXISTS,
|
||||
B_ERR_NOT_SUPPORTED,
|
||||
B_ERR_BAD_STATE,
|
||||
B_ERR_NO_ENTRY,
|
||||
B_ERR_NO_DATA,
|
||||
B_ERR_UNKNOWN_FUNCTION,
|
||||
B_ERR_BAD_FORMAT,
|
||||
} b_status;
|
||||
|
||||
extern const char *b_status_to_string(b_status status);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user