Oh yea, THAT. At work we have a project_sizeof() for that specific reason.
Of course that's in a c project, so snprintfs everywhere, so that macro
gets a real workout.