logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

compiler_support.h (370B)


  1. // Copyright 2025 QMK Contributors
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. /**
  4. * @brief Perfom an assertion at compile time.
  5. *
  6. * `_Static_assert` is C<23, while `static_assert` is C++/C23.
  7. */
  8. #if !defined(STATIC_ASSERT)
  9. # ifdef __cplusplus
  10. # define STATIC_ASSERT static_assert
  11. # else
  12. # define STATIC_ASSERT _Static_assert
  13. # endif
  14. #endif