Convert #if to a [Conditional(LOG_TYPES)] for type logging.