From 3fda1ba333e3ea3df3e50a4630f1d64128ab21c6 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Fri, 30 Jul 2021 08:24:05 +0100 Subject: Tidied up ExpressionParser array parsing --- src/GCodes/GCodeBuffer/ExpressionParser.cpp | 4 ++-- src/GCodes/GCodeBuffer/ExpressionParser.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GCodes/GCodeBuffer/ExpressionParser.cpp b/src/GCodes/GCodeBuffer/ExpressionParser.cpp index 60d5db79..f4419ad6 100644 --- a/src/GCodes/GCodeBuffer/ExpressionParser.cpp +++ b/src/GCodes/GCodeBuffer/ExpressionParser.cpp @@ -567,7 +567,7 @@ DriverId ExpressionParser::ParseDriverId() THROWS(GCodeException) return val.GetDriverIdValue(); } -void ExpressionParser::ParseArray(size_t& length, function_ref processElement) THROWS(GCodeException) +void ExpressionParser::ParseArray(size_t& length, function_ref THROWS(GCodeException) processElement) THROWS(GCodeException) { size_t numElements = 0; AdvancePointer(); // skip the '{' @@ -575,7 +575,7 @@ void ExpressionParser::ParseArray(size_t& length, function_ref= 0; isalpha(gb.buffer[readPointer])); void __attribute__((noinline)) ParseQuotedString(ExpressionValue& rslt) THROWS(GCodeException); - void ParseArray(size_t& length, function_ref processElement) THROWS(GCodeException); + void ParseArray(size_t& length, function_ref THROWS(GCodeException) processElement) THROWS(GCodeException); void GetVariableValue(ExpressionValue& rslt, const VariableSet *vars, const char *name, bool parameter, bool wantExists) THROWS(GCodeException); -- cgit v1.2.3