Golioth Firmware SDK
|
Go to the source code of this file.
Macros | |
#define | FOREACH_GOLIOTH_STATUS(STATUS) |
Status code enum used throughout Golioth SDK. | |
#define | GENERATE_GOLIOTH_STATUS_ENUM(code) code, |
#define | GOLIOTH_STATUS_RETURN_IF_ERROR(expr) |
Enumerations | |
enum | golioth_status { FOREACH_GOLIOTH_STATUS =(GENERATE_GOLIOTH_STATUS_ENUM) NUM_GOLIOTH_STATUS_CODES } |
Functions | |
const char * | golioth_status_to_str (enum golioth_status status) |
#define FOREACH_GOLIOTH_STATUS | ( | STATUS | ) |
Status code enum used throughout Golioth SDK.
Definition at line 15 of file golioth_status.h.
#define GENERATE_GOLIOTH_STATUS_ENUM | ( | code | ) | code, |
Definition at line 35 of file golioth_status.h.
#define GOLIOTH_STATUS_RETURN_IF_ERROR | ( | expr | ) |
Helper macro, for functions that return type enum golioth_status, if they want to return early when an expression returns something other than GOLIOTH_OK.
Definition at line 51 of file golioth_status.h.
enum golioth_status |
Enumerator | |
---|---|
FOREACH_GOLIOTH_STATUS |
Definition at line 36 of file golioth_status.h.
const char * golioth_status_to_str | ( | enum golioth_status | status | ) |
Convert status code to human-readable string
status | status code to convert to string |