From 60f3e91b80dee6fcd995066730058dd5bc29414d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Feb 2024 14:54:19 -0500 Subject: Minor cleanup --- util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util.h') diff --git a/util.h b/util.h index 1df56ce5..c858f6ce 100644 --- a/util.h +++ b/util.h @@ -27,6 +27,7 @@ char *heap_str(const char *str); char *heap_strf(const char *fmt, ...); CORD CORD_asprintf(CORD fmt, ...); #define CORD_appendf(cord, fmt, ...) CORD_sprintf(cord, "%r" fmt, *(cord) __VA_OPT__(,) __VA_ARGS__) +#define CORD_all(...) CORD_catn(sizeof((CORD[]){__VA_ARGS__})/sizeof(CORD), __VA_ARGS__) #define asprintfa(...) ({ char *_buf = alloca(snprintf(0, 0, __VA_ARGS__)); sprintf(_buf, __VA_ARGS__); _buf; }) -- cgit v1.2.3