diff options
author | David Timber <mieabby@gmail.com> | 2020-01-19 13:12:29 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-19 13:12:29 +1100 |
commit | d328cbbdc256197d02ec03eef0022b4122d38bb8 (patch) | |
tree | 088f711afe755ef99c28955fab716a0752e47029 /src/util_ct.h | |
parent | a9762b186c68797c19c61bf0284a80d9bc51a2ca (diff) |
bin pack redesign. resolv bug fix
Diffstat (limited to 'src/util_ct.h')
-rw-r--r-- | src/util_ct.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util_ct.h b/src/util_ct.h index 1aadbe2..c8068c7 100644 --- a/src/util_ct.h +++ b/src/util_ct.h @@ -4,6 +4,8 @@ #define PRNE_LIMIT_ENUM(t,x,l) _Static_assert(x<=l,"enum overflow: "#t) +#define prne_op_min(a, b) (a < b ? a : b) +#define prne_op_max(a, b) (a > b ? a : b) #define prne_op_spaceship(a, b) (a == b ? 0 : a < b ? -1 : 1) #if !defined(memzero) |