| 38 | } |
| 39 | |
| 40 | static void modifyNumValue(Variable &var, double val, const bool increment) |
| 41 | { |
| 42 | auto current = var.DoubleValue(); |
| 43 | if (!current.has_value()) { |
| 44 | return; |
| 45 | } |
| 46 | |
| 47 | if (increment) { |
| 48 | var.SetValue(*current + val); |
| 49 | } else { |
| 50 | var.SetValue(*current - val); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | MacroActionVariable::~MacroActionVariable() |
| 55 | { |
no test coverage detected