last second move things over in the error enum (#71)

I realized I didn't give enough space for additional failure modes
to be added in the future, and I should do this as soon as possible
to prevent things from being made that depend on the old constants
This commit is contained in:
LoganDark 2023-05-26 05:22:32 -07:00 committed by GitHub
parent d26791b5bc
commit 83983bbb84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

12
rwkv.h
View File

@ -32,12 +32,12 @@ extern "C" {
enum rwkv_error_flags {
RWKV_ERROR_NONE = 0,
RWKV_ERROR_ARGS = 1 << 4,
RWKV_ERROR_FILE = 2 << 4,
RWKV_ERROR_MODEL = 3 << 4,
RWKV_ERROR_MODEL_PARAMS = 4 << 4,
RWKV_ERROR_GRAPH = 5 << 4,
RWKV_ERROR_CTX = 6 << 4,
RWKV_ERROR_ARGS = 1 << 8,
RWKV_ERROR_FILE = 2 << 8,
RWKV_ERROR_MODEL = 3 << 8,
RWKV_ERROR_MODEL_PARAMS = 4 << 8,
RWKV_ERROR_GRAPH = 5 << 8,
RWKV_ERROR_CTX = 6 << 8,
RWKV_ERROR_ALLOC = 1,
RWKV_ERROR_FILE_OPEN = 2,