Macros: dot_a_linkage and static Macros

Use dot_a_linkage for the Keyboardio-Macros library, and as a
consequence, declare the Macros variable static instead of extern, so
that it gets compiled and linked in even when not referenced directly.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/58/head
Gergely Nagy 8 years ago
parent d767854b8d
commit 22ebbc6b7a

@ -7,3 +7,4 @@ paragraph=...
category=Communication
url=https://github.com/keyboardio/KeyboardioFirmware
architectures=avr
dot_a_linkage=true

@ -57,5 +57,3 @@ static bool handleMacroEvent(Key mappedKey, byte row, byte col, uint8_t keyState
Macros_::Macros_ (void) {
event_handler_hook_add (handleMacroEvent);
}
Macros_ Macros;

@ -14,4 +14,4 @@ class Macros_ {
void play(const macro_t *macro_p);
};
extern Macros_ Macros;
static Macros_ Macros;

Loading…
Cancel
Save