Check UE_DEFINE_PRIVATE_MEMBER_PTR in the engine, it shows how to use the macro.