Given that `p` should be a pointer to void, an inline function would be better than a macro here.