Make two functions out of #define hackery.