]> granicus.if.org Git - strace/commit
Introduce static_assert
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 3 Apr 2018 22:52:54 +0000 (22:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 4 Apr 2018 12:24:19 +0000 (12:24 +0000)
commita781408bd48d51f3a68c839054de8512365f97db
tree40fb8b5c2033e43c14a791d862ae4f3fbc5477ef
parent074f49451c702891778d0d8b1fbc3d25cb43f450
Introduce static_assert

We are going to use static_assert provided by <assert.h> or,
if it doesn't work, our cheap imitation that doesn't display
the message specified as the second argument of static_assert.

* configure.ac (AC_CACHE_CHECK): Check for static_assert in <assert.h>,
define HAVE_STATIC_ASSERT if it is available.
* static_assert.h: New file.
* Makefile.am (strace_SOURCES): Add it.
Makefile.am
configure.ac
static_assert.h [new file with mode: 0755]