Designed to replace the old offsetof macro Former-commit-id: faa45ebfd3c1f9cc817f6fccf5c94d2c1527349d