mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-15 03:19:41 +00:00
change listen count, fix null
This commit is contained in:
parent
19e27a9617
commit
7eccc5ffa6
2 changed files with 4 additions and 4 deletions
|
@ -130,17 +130,17 @@ inline enum rwkv_error_flags operator|=(enum rwkv_error_flags & a, enum rwkv_err
|
|||
} } while (0)
|
||||
|
||||
#define RWKV_ASSERT_FALSE_MSG(ERR_VAL, x, ...) RWKV_ASSERT_MSG(ERR_VAL, false, x, __VA_ARGS__)
|
||||
#define RWKV_ASSERT_NULL_MSG(ERR_VAL, x, ...) RWKV_ASSERT_MSG(ERR_VAL, NULL, x, __VA_ARGS__)
|
||||
#define RWKV_ASSERT_NULL_MSG(ERR_VAL, x, ...) RWKV_ASSERT_MSG(ERR_VAL, 0, x, __VA_ARGS__)
|
||||
|
||||
#define RWKV_CTX_ASSERT_FALSE_MSG(ctx, ERR_VAL, x, ...) RWKV_CTX_ASSERT_MSG(ctx, ERR_VAL, false, x, __VA_ARGS__)
|
||||
|
||||
#define RWKV_ASSERT_FALSE(ERR_VAL, x) RWKV_ASSERT(ERR_VAL, false, x)
|
||||
#define RWKV_ASSERT_NULL(ERR_VAL, x) RWKV_ASSERT(ERR_VAL, NULL, x)
|
||||
#define RWKV_ASSERT_NULL(ERR_VAL, x) RWKV_ASSERT(ERR_VAL, 0, x)
|
||||
|
||||
#define RWKV_CTX_ASSERT_FALSE(ctx, ERR_VAL, x) RWKV_CTX_ASSERT(ctx, ERR_VAL, false, x)
|
||||
|
||||
#define RWKV_ENSURE_OR_FALSE(x) RWKV_ENSURE(false, x)
|
||||
#define RWKV_ENSURE_OR_NULL(x) RWKV_ENSURE(NULL, x)
|
||||
#define RWKV_ENSURE_OR_NULL(x) RWKV_ENSURE(0, x)
|
||||
#define RWKV_ENSURE_OR_FALSE_MSG(x, ...) RWKV_ENSURE_MSG(false, x, __VA_ARGS__)
|
||||
|
||||
// --- Utilities ---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue