Implement region wrapping macro