instead of #define and #undefine to limit a const variable in a local scope, I think it would be fine to just leave the `const` keyword aside, it's easy for compiler to optimize it away.