replace macro constant with const expr