| 1251 | } |
| 1252 | |
| 1253 | void ExpressionParser::ConvertToString(ExpressionValue& val, bool evaluate) const noexcept |
| 1254 | { |
| 1255 | if (!val.IsStringType()) |
| 1256 | { |
| 1257 | if (evaluate) |
| 1258 | { |
| 1259 | String<MaxStringExpressionLength> str; |
| 1260 | val.AppendAsString(str.GetRef()); |
| 1261 | StringHandle sh(str.c_str()); |
| 1262 | val.SetStringHandle(sh); |
| 1263 | } |
| 1264 | else |
| 1265 | { |
| 1266 | val.SetCString(""); |
| 1267 | } |
| 1268 | } |
| 1269 | } |
| 1270 | |
| 1271 | void ExpressionParser::ConvertToDriverId(ExpressionValue& val, bool evaluate) const THROWS(GCodeException) |
| 1272 | { |
nothing calls this directly
no test coverage detected