common: New function map_static_macro_string.