aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/substitute-internal.h')
-rw-r--r--lib/substitute-internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h
index 3e0691d..8859436 100644
--- a/lib/substitute-internal.h
+++ b/lib/substitute-internal.h
@@ -109,3 +109,7 @@ static UNUSED const char *xbasename(const char *path) {
return slash ? slash + 1 : path;
}
+#define substitute_assert(x) do { \
+ if (!(x)) { __builtin_abort(); } \
+} while(0)
+