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:
authorDavid Crocker <dcrocker@eschertech.com>2020-01-06 23:11:40 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-06 23:11:40 +0300
commite972bfc92ed8d6e5ad36b0ea2a150f30762a6cfc (patch)
tree3cc27ca51f47737bbe571f6a2f71b1b5c6128dec /src/ObjectModel/ObjectModel.h
parentc8ef10d29d38856353689f3b5934c8fb226787d9 (diff)
Added string-valued expressions
Diffstat (limited to 'src/ObjectModel/ObjectModel.h')
-rw-r--r--src/ObjectModel/ObjectModel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ObjectModel/ObjectModel.h b/src/ObjectModel/ObjectModel.h
index 44635f2c..c8c40a95 100644
--- a/src/ObjectModel/ObjectModel.h
+++ b/src/ObjectModel/ObjectModel.h
@@ -84,6 +84,7 @@ struct ExpressionValue
void Set(int32_t i) noexcept { type = TYPE_OF(int32_t); iVal = i; }
void Set(int i) noexcept { type = TYPE_OF(int32_t); iVal = i; }
void Set(float f) noexcept { type = TYPE_OF(float); fVal = f; param = 1; }
+ void Set(const char *s) noexcept { type = TYPE_OF(const char*); sVal = s; }
};
// Entry to describe an array. These should be brace-initializable in flash memory.