summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 497a94f..f11c755 100644
--- a/misc.c
+++ b/misc.c
@@ -57,3 +57,6 @@ static inline U32 rand_u32(U32 seed) {
static inline bool strs_equal(const char *a, const char *b) {
return strcmp(a, b) == 0;
}
+
+#define plural_suffix(x) ((x) == 1 ? "" : "s")
+