Add a utility for generating C macro.