From 0a1db8a770128dec1bb78e5e5217c169a797d0bc Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Thu, 18 Apr 2024 10:12:00 +0200 Subject: Avoid magic numbers for the size of FunctionBar lists --- FunctionBar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FunctionBar.h') diff --git a/FunctionBar.h b/FunctionBar.h index f01a5ef5..06d9c6c8 100644 --- a/FunctionBar.h +++ b/FunctionBar.h @@ -21,6 +21,8 @@ typedef struct FunctionBar_ { bool staticData; } FunctionBar; +#define FUNCTIONBAR_MAXEVENTS 15 + FunctionBar* FunctionBar_newEnterEsc(const char* enter, const char* esc); FunctionBar* FunctionBar_new(const char* const* functions, const char* const* keys, const int* events); -- cgit v1.2.3