From 8f5b9ece19696e9d899ff11ed230981ab8b8ef7e Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 26 Dec 2016 11:02:11 +0100 Subject: [PATCH] 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 --- src/KeyboardioFirmware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KeyboardioFirmware.h b/src/KeyboardioFirmware.h index 6ab0ddeb..bab6dd12 100644 --- a/src/KeyboardioFirmware.h +++ b/src/KeyboardioFirmware.h @@ -40,7 +40,7 @@ class Keyboardio_ { void setup(const byte keymap_count); void loop(void); - void use(KeyboardioPlugin *plugin, ...); + void use(KeyboardioPlugin *plugin, ...) __attribute__((sentinel)); }; static Keyboardio_ Keyboardio;