• Show log

    Commit

  • Hash : c504bec0
    Author : Paul Eggert
    Date : 2022-09-13T17:29:35

    assert-h: static_assert is a keyword in C23
    
    * 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.
    

  • README

  • Please create and read the docs with
    
      $ cd doc
      $ make gnulib.html
      $ xdg-open gnulib.html
    
    or read the online manual at
    
      https://www.gnu.org/software/gnulib/manual/gnulib.html