aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute-internal.h
diff options
context:
space:
mode:
authorYifan Lu2016-11-23 14:34:33 -0600
committerYifan Lu2016-11-23 14:34:33 -0600
commitbd5ebb7a0a4e102731de72832f3e12e9f54d541a (patch)
treebef4f637a270d3f7d2551ac74a89e6b4bad8adec /lib/substitute-internal.h
parentFixed proper encoding of PUSH (STMDB) as ARM manual was wrong... (diff)
parentavoid UB (diff)
downloadsubstitute-bd5ebb7a0a4e102731de72832f3e12e9f54d541a.tar.gz
Merge branch 'master' of https://github.com/comex/substitute
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)
+