What do you think about moving `#ifdef ...` into the function, and removing it everywhere else?