]> git.earman.xyz Git - sensor-watch.git/commit
faces/tally: convert size into compile time const
authorMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Sun, 8 Sep 2024 21:53:42 +0000 (18:53 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Sun, 8 Sep 2024 21:53:42 +0000 (18:53 -0300)
commit7a4424b2d4ae477b5bfb74ddc35a4708d03c9997
treee8b0cf46d7b0a7881c0b65fa2ffd9dde4e8a871e
parente4e0b611f33fc99d410fb5049302aafce9ff7a6c
faces/tally: convert size into compile time const

Creates a macro that returns the size of the presets array,
converting it into a compile time constant value that occupies
no memory and that compilers can constant fold into other expressions
potentially leading to dead code elimination.
movement/watch_faces/complication/tally_face.c