mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-06-06 21:03:26 +08:00
Some checks failed
Update API Data / api_data (push) Has been cancelled
CLI CI / test (push) Has been cancelled
Update feature branches after develop merge / feature_branch_update (riot) (push) Has been cancelled
Update feature branches after develop merge / feature_branch_update (xap) (push) Has been cancelled
Lint Format / lint (push) Has been cancelled
Regenerate Files / regen (push) Has been cancelled
Unit Tests / test (push) Has been cancelled
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
|