Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | maint: run 'make update-copyright' | Simon Josefsson | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | assert-h: static_assert is a keyword in C23 | Paul Eggert | 2022-09-13 | 1 | -0/+71 |
* m4/assert_h.m4 (gl_ASSERT_H): Also test for static_assert keyword a la C23, and define HAVE_C_STATIC_ASSERT if so. If not, arrange for config.h to #define static_assert by including <assert.h>, and then do "#undef assert" so that the assert macro still needs an explicit include. This should be safe even on very old hosts, as assert.h has been re-includable for decades. * tests/tests-assert.c: New test. * modules/assert-h-tests (Files, Makefile.am): Add it. |