Memory allocation macros [macros]

Memory allocation macros

These macros allow slightly simplified handling of memory.