| 110 | std::string* text, bool preDef = false); |
| 111 | |
| 112 | void AddMacro(const std::string& name, const Macro& macro) { |
| 113 | auto res = macroMap_.find(name); |
| 114 | if (res != macroMap_.end()) { |
| 115 | // TODO(wgtdkp): give warning |
| 116 | macroMap_.erase(res); |
| 117 | } |
| 118 | macroMap_.insert(std::make_pair(name, macro)); |
| 119 | } |
| 120 | |
| 121 | void RemoveMacro(const std::string& name) { |
| 122 | auto res = macroMap_.find(name); |