Replace C macros by C++ constexpr #3399
Labels
good first issue
Good for newcomers
I: No breaking change
Previously written code will work as before, no one should note anything changing (aside the fix)
S: Normal
Handle this with default priority
In the code we make extensive use of C macros to enable/disable certain regions of code based on compiler flags. These C macros could be replaced by C++
constexpr
equivalents andby
This way all code would always be checked by the compiler independent of the local compiler flags, which reduces possible errors that one doesn't catch locally.
Maybe there is a way for CMake to create
constexpr
variables directly instead of defining C macro variables.The text was updated successfully, but these errors were encountered: