mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 12:51:47 +00:00
use STATIC_ASSERT
This commit is contained in:
parent
5d14a874eb
commit
2aef65c3fc
@ -18,6 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "compiler_support.h"
|
||||
#include "report.h"
|
||||
#include "modifiers.h"
|
||||
|
||||
@ -38,7 +40,7 @@ typedef union {
|
||||
bool right_gui : 1;
|
||||
};
|
||||
} PACKED mod_t;
|
||||
_Static_assert(sizeof(mod_t) == sizeof(uint8_t), "Invalid size for 'mod_t'");
|
||||
STATIC_ASSERT(sizeof(mod_t) == sizeof(uint8_t), "Invalid size for 'mod_t'");
|
||||
|
||||
extern report_keyboard_t *keyboard_report;
|
||||
#ifdef NKRO_ENABLE
|
||||
|
Loading…
Reference in New Issue
Block a user