aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcmap.h')
-rw-r--r--libcmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcmap.h b/libcmap.h
index 78c0a53..c02857b 100644
--- a/libcmap.h
+++ b/libcmap.h
@@ -17,6 +17,8 @@
#define LIBCMAP_ULTIMATE_CODEPOINT UINT32_C(0x10FFFF)
#define LIBCMAP_UNIVERSE_RANGE {0, LIBCMAP_ULTIMATE_CODEPOINT}
+#define LIBCMAP_RANGE_SIZE(RANGE) ((size_t)((RANGE)->last - (RANGE)->first + 1U))
+
struct libcmap_range {
uint32_t first;