First nontrivial replacement of object state test by macro.