summaryrefslogtreecommitdiff
path: root/quantum/keycode_config.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@drashna.net>2023-05-08 10:56:03 -0700
committerGitHub <noreply@github.com>2023-05-08 10:56:03 -0700
commit5c4b53a1437adde49871752d8015bfc042b97c20 (patch)
treee67534e42cf3cdf95df869f8f66e23cfeba78524 /quantum/keycode_config.h
parent01be98184363591656ed6bd5baac21e6a5d61132 (diff)
[Bug] Realign and size check EECONFIG structures (#20541)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/keycode_config.h')
-rw-r--r--quantum/keycode_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/keycode_config.h b/quantum/keycode_config.h
index eef048d95c..d1352c302e 100644
--- a/quantum/keycode_config.h
+++ b/quantum/keycode_config.h
@@ -16,6 +16,10 @@
#pragma once
+#ifdef __cplusplus
+# define _Static_assert static_assert
+#endif
+
#include "eeconfig.h"
#include "keycode.h"
#include "action_code.h"
@@ -43,4 +47,6 @@ typedef union {
};
} keymap_config_t;
+_Static_assert(sizeof(keymap_config_t) == sizeof(uint16_t), "Keycode (magic) EECONFIG out of spec.");
+
extern keymap_config_t keymap_config;