Merged functions with preprocessor defines