Use constexpr to replace #define.