Use macro to implement interpolator.