diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-08-02 01:20:12 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-09-25 02:40:23 +0200 |
| commit | 288727f09a1b3458c268497d111349e608c3f9fa (patch) | |
| tree | d62565249fa3c7127856c65405752572fc41aca9 /src_c/status.h | |
Diffstat (limited to 'src_c/status.h')
| -rw-r--r-- | src_c/status.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src_c/status.h b/src_c/status.h new file mode 100644 index 0000000..c6332e9 --- /dev/null +++ b/src_c/status.h @@ -0,0 +1,25 @@ +#ifndef LSP_STATUS_H +#define LSP_STATUS_H + +#include "arch.h" + +#define LSP_STATUS(x) ((lsp_status_t)x) + +#define LSP_SUCCESS LSP_STATUS(0) +#define LSP_EOF LSP_STATUS(-1) +#define LSP_ERR LSP_STATUS(1) +#define LSP_ERR_MEM LSP_STATUS(2) +#define LSP_ERR_CTX LSP_STATUS(3) +#define LSP_ERR_READ LSP_STATUS(4) +#define LSP_ERR_WRITE LSP_STATUS(5) +#define LSP_ERR_EVAL LSP_STATUS(6) +#define LSP_ERR_APPLY LSP_STATUS(7) +#define LSP_ERR_ARG_COUNT LSP_STATUS(8) +#define LSP_ERR_ARG_TYPE LSP_STATUS(9) +#define LSP_ERR_ARG_VALUE LSP_STATUS(10) +#define LSP_ERR_USER LSP_STATUS(0x80) + + +typedef lsp_int8_t lsp_status_t; + +#endif |
