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