Converts a define into a constexpr variable, also joins declarations with assignments where applicable.