make asserting malloc into a #define