Check the ctx argument of the memory macros