Zycore 1.5.1.0
|
#include <Zycore/Types.h>
Go to the source code of this file.
Typedefs | |
typedef ZyanU32 | ZyanStatus |
Status code definitions and check macros.
#define ZYAN_CHECK | ( | status | ) |
Checks if a zyan operation was successful and returns with the status-code, if not.
status | The zyan status-code to check. |
#define ZYAN_FAILED | ( | status | ) |
Checks if a zyan operation failed.
status | The zyan status-code to check. |
ZYAN_TRUE
, if the operation failed or ZYAN_FALSE
, if not. #define ZYAN_MAKE_STATUS | ( | error, | |
module, | |||
code ) |
Defines a zyan status code.
error | 1 , if the status code signals an error or 0 , if not. |
module | The module id. |
code | The actual code. |
#define ZYAN_MODULE_ARGPARSE 0x003u |
The zycore arg-parse submodule id.
#define ZYAN_MODULE_USER 0x3FFu |
The base module id for user-defined status codes.
#define ZYAN_MODULE_ZYCORE 0x001u |
The zycore generic module id.
#define ZYAN_STATUS_ACCESS_DENIED ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x06u) |
Insufficient privileges to perform the requested operation.
#define ZYAN_STATUS_ARG_MISSES_VALUE ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ARGPARSE, 0x03u) |
An argument that expected a value misses its value.
#define ZYAN_STATUS_ARG_NOT_UNDERSTOOD ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ARGPARSE, 0x00u) |
Argument was not expected.
#define ZYAN_STATUS_BAD_SYSTEMCALL ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x0Bu) |
An unknown error occurred during a system function call.
#define ZYAN_STATUS_CODE | ( | status | ) |
Returns the code of a zyan status-code.
status | The zyan status-code. |
#define ZYAN_STATUS_FAILED ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x01u) |
The operation failed with an generic error.
#define ZYAN_STATUS_FALSE ZYAN_MAKE_STATUS(0u, ZYAN_MODULE_ZYCORE, 0x03u) |
The operation completed successfully and returned ZYAN_FALSE
.
#define ZYAN_STATUS_INSUFFICIENT_BUFFER_SIZE ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x09u) |
A buffer passed to a function was too small to complete the requested operation.
#define ZYAN_STATUS_INVALID_ARGUMENT ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x04u) |
An invalid argument was passed to a function.
#define ZYAN_STATUS_INVALID_OPERATION ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x05u) |
An attempt was made to perform an invalid operation.
#define ZYAN_STATUS_MISSING_DEPENDENCY ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x0Du) |
A dependency library was not found or does have an unexpected version number or feature-set.
#define ZYAN_STATUS_MODULE | ( | status | ) |
Returns the module id of a zyan status-code.
status | The zyan status-code. |
#define ZYAN_STATUS_NOT_ENOUGH_MEMORY ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x0Au) |
Insufficient memory to perform the operation.
#define ZYAN_STATUS_NOT_FOUND ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x07u) |
The requested entity was not found.
#define ZYAN_STATUS_OUT_OF_RANGE ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x08u) |
An index passed to a function was out of bounds.
#define ZYAN_STATUS_OUT_OF_RESOURCES ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ZYCORE, 0x0Cu) |
The process ran out of resources while performing an operation.
#define ZYAN_STATUS_REQUIRED_ARG_MISSING ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ARGPARSE, 0x04u) |
A required argument is missing.
#define ZYAN_STATUS_SUCCESS ZYAN_MAKE_STATUS(0u, ZYAN_MODULE_ZYCORE, 0x00u) |
The operation completed successfully.
#define ZYAN_STATUS_TOO_FEW_ARGS ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ARGPARSE, 0x01u) |
Too few arguments were provided.
#define ZYAN_STATUS_TOO_MANY_ARGS ZYAN_MAKE_STATUS(1u, ZYAN_MODULE_ARGPARSE, 0x02u) |
Too many arguments were provided.
#define ZYAN_STATUS_TRUE ZYAN_MAKE_STATUS(0u, ZYAN_MODULE_ZYCORE, 0x02u) |
The operation completed successfully and returned ZYAN_TRUE
.
#define ZYAN_SUCCESS | ( | status | ) |
Checks if a zyan operation was successful.
status | The zyan status-code to check. |
ZYAN_TRUE
, if the operation succeeded or ZYAN_FALSE
, if not. typedef ZyanU32 ZyanStatus |
Defines the ZyanStatus
data type.