diff options
author | Yifan Lu | 2016-11-23 14:34:33 -0600 |
---|---|---|
committer | Yifan Lu | 2016-11-23 14:34:33 -0600 |
commit | bd5ebb7a0a4e102731de72832f3e12e9f54d541a (patch) | |
tree | bef4f637a270d3f7d2551ac74a89e6b4bad8adec /lib/substitute-internal.h | |
parent | Fixed proper encoding of PUSH (STMDB) as ARM manual was wrong... (diff) | |
parent | avoid UB (diff) | |
download | substitute-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.h | 4 |
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) + |