Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/GCodes/Variable.h')
-rw-r--r--src/GCodes/Variable.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/GCodes/Variable.h b/src/GCodes/Variable.h
index d6074f52..9054514e 100644
--- a/src/GCodes/Variable.h
+++ b/src/GCodes/Variable.h
@@ -25,6 +25,9 @@ public:
Variable(const char *str, ExpressionValue pVal, int8_t pScope) noexcept;
~Variable();
+ ExpressionValue GetValue() const { return val; }
+ int8_t GetScope() const { return scope; }
+
private:
Variable *next;
StringHandle name;