SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
151 stars 81 forks source link

Convert #defines to constant variables wherever feasible #461

Closed mairas closed 2 years ago

mairas commented 2 years ago

Preprocessor macros can pollute other namespaces and it's safer to convert them to constexpr variables or functions whenever possible.

mairas commented 2 years ago

There are still offending macro definitions here and there, but a lot have been converted during the past few weeks. I'll leave the remaining macros for now.