diff options
Diffstat (limited to 'src/util_ct.h')
-rw-r--r-- | src/util_ct.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util_ct.h b/src/util_ct.h new file mode 100644 index 0000000..c8eca2f --- /dev/null +++ b/src/util_ct.h @@ -0,0 +1,7 @@ +#pragma once +#include <assert.h> + + +#define PRNE_LIMIT_ENUM(t,x,l) _Static_assert(x<=l,"enum overflow: "#t) + +#define prne_op_spaceship(a, b) (a == b ? 0 : a < b ? -1 : 1) |