From 3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 23 Nov 2018 13:57:38 +0100 Subject: Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise). Improved const-correctness and scope for some variables. --- Source/System.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index a5417b1..12c0079 100644 --- a/Source/System.h +++ b/Source/System.h @@ -13,6 +13,8 @@ #define TIMER_PRESCALER_1_SECOND 10 #define TIMER_PRESCALER_1_MINUTE (TIMER_PRESCALER_1_SECOND * 60) +#define ARRAY_SIZE(x) (sizeof ((x)) / sizeof ((x[0]))) + /* ************************************** * Global Prototypes * * **************************************/ -- cgit v1.2.3