When I declare a macro, as you did inside the function body, I would #undef this at the end. Because, most likely, it is intended only for this body of function.
In general, the #undef macro is always good when you know that the macro definition will not be used at any time later, because the macro definition applies to all other files that include the macro file.
source share