Have you profiled your code and found this function to the the major cause of any performance issues?
If not why do you want this as a macro instead of a function?