Improving allocation macros