mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-04-30 04:02:19 +00:00
Files
9c3748558b4e266b676d19b940affe12eb7b3c3f
16 lines
370 B
C
16 lines
370 B
C
// Copyright 2025 QMK Contributors
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|||
|
|||
/**
|
|||
* @brief Perfom an assertion at compile time.
|
|||
*
|
|||
* `_Static_assert` is C<23, while `static_assert` is C++/C23.
|
|||
*/
|
|||
#if !defined(STATIC_ASSERT)
|
|||
# ifdef __cplusplus
|
|||
# define STATIC_ASSERT static_assert
|
|||
# else
|
|||
# define STATIC_ASSERT _Static_assert
|
|||
# endif
|
|||
#endif
|