diff options
author | David Timber <mieabby@gmail.com> | 2020-01-03 03:08:19 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-03 03:08:19 +1100 |
commit | 9a2a07861e3919ea2d8f3b4f36e2d51d7748ba9d (patch) | |
tree | 4cb2cea83cc440e67abef03e70b089369b0fecc6 /src/util_ct.h | |
parent | ed809a51fdd1c313cd256301ef6f7211e8394cb1 (diff) |
checkpoint
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) |