diff options
Diffstat (limited to 'server/util')
-rw-r--r-- | server/util/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/util/util.h b/server/util/util.h index 661bcebb9..3ca43a409 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -152,6 +152,9 @@ errno_t set_debug_file_from_fd(const int fd); } \ } while (0) +#define OUT_OF_ID_RANGE(id, min, max) \ + (id == 0 || (min && (id < min)) || (max && (id > max))) + #include "util/dlinklist.h" /* From debug.c */ |