Having trouble with function pointer constants in constant replacement -> maybe I should rewrite the code