Banjo API 0.0.1
C99 game development API
|
Go to the source code of this file.
Data Structures | |
struct | bj_error |
Macros | |
#define | bj_error_code_is_user (c) (((c >> 24) & 0xFF) > 0x00) |
#define | bj_error_code_kind(c) |
#define | BJ_ERROR_MESSAGE_MAX_LEN 127 |
Enumerations | |
enum | bj_error_code { BJ_ERROR_NONE = 0x00000000 , BJ_ERROR = 0x00000001 , BJ_ERROR_UNSUPPORTED = 0x00000101 , BJ_ERROR_NOT_IMPLEMENTED = 0x00000201 , BJ_ERROR_SYSTEM = 0x00000002 , BJ_ERROR_FILE_NOT_FOUND = 0x00000102 , BJ_ERROR_CANNOT_ALLOCATE = 0x00000202 , BJ_ERROR_INITIALIZE = 0x00000302 , BJ_ERROR_DISPOSE = 0x00000302 , BJ_ERROR_IO = 0x00000003 , BJ_ERROR_CANNOT_READ_FILE = 0x00000103 , BJ_ERROR_INVALID_DATA = 0x00000004 , BJ_ERROR_INVALID_FORMAT = 0x00000104 , BJ_ERROR_INCORRECT_VALUE = 0x00000204 , BJ_ERROR_VIDEO = 0x00000005 , BJ_ERROR_AUDIO = 0x00000006 } |
Functions | |
void | bj_set_error (bj_error **p_error, uint32_t code, const char *message) |
bj_bool | bj_check_error (const bj_error *p_error, uint32_t code) |
bj_bool | bj_forward_error (bj_error *p_source, bj_error **p_destination) |
void | bj_clear_error (bj_error **p_error) |
Recoverable error handling.