| 38 | } |
| 39 | |
| 40 | static bool compareNumber(const Variable &var, double value, bool less) |
| 41 | { |
| 42 | auto varValue = var.DoubleValue(); |
| 43 | if (!varValue.has_value()) { |
| 44 | return false; |
| 45 | } |
| 46 | if (less) { |
| 47 | return varValue < value; |
| 48 | } |
| 49 | return varValue > value; |
| 50 | } |
| 51 | |
| 52 | bool MacroConditionVariable::Compare(const Variable &var) const |
| 53 | { |
no test coverage detected