Add a sentinel attribute to Keyboardio.use()

Makes it obvious when one forgets to close the arguments with a sentinel, by
giving the compiler a hint.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/73/head
Gergely Nagy 8 years ago
parent 7268eefb93
commit 8f5b9ece19

@ -40,7 +40,7 @@ class Keyboardio_ {
void setup(const byte keymap_count); void setup(const byte keymap_count);
void loop(void); void loop(void);
void use(KeyboardioPlugin *plugin, ...); void use(KeyboardioPlugin *plugin, ...) __attribute__((sentinel));
}; };
static Keyboardio_ Keyboardio; static Keyboardio_ Keyboardio;

Loading…
Cancel
Save