| 149 | } |
| 150 | |
| 151 | bool Program::addDefine(const std::string& name, const std::string& value) |
| 152 | { |
| 153 | // Make sure that it doesn't exist already |
| 154 | if (mDefineList.find(name) != mDefineList.end()) |
| 155 | { |
| 156 | if (mDefineList[name] == value) |
| 157 | { |
| 158 | // Same define |
| 159 | return false; |
| 160 | } |
| 161 | } |
| 162 | markDirty(); |
| 163 | mDefineList[name] = value; |
| 164 | return true; |
| 165 | } |
| 166 | |
| 167 | bool Program::addDefines(const DefineList& dl) |
| 168 | { |
no test coverage detected