fix(query): add jmp macro define.

This commit is contained in:
Haojun Liao 2022-08-18 10:58:39 +08:00
parent a71b4d2126
commit e70cfbbd00
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ static UNUSED_FUNC void* u_realloc(void* p, size_t __size) {
#define realloc u_realloc
#endif
#define T_LONG_JMP(_obj, _c) \
do { \
assert((_c) != -1); \
longjmp((_obj), (_c)); \
} while (0);
#define CLEAR_QUERY_STATUS(q, st) ((q)->status &= (~(st)))
#define QUERY_IS_INTERVAL_QUERY(_q) ((_q)->interval.interval > 0)