diff --git a/lib/macro/macro-segment.hpp b/lib/macro/macro-segment.hpp index f0d1f751..8532d263 100644 --- a/lib/macro/macro-segment.hpp +++ b/lib/macro/macro-segment.hpp @@ -51,8 +51,17 @@ protected: virtual void SetupTempVars(); void AddTempvar(const std::string &id, const std::string &name, const std::string &description = ""); + void SetTempVarValue(const std::string &id, const std::string &value); + template, bool>::value>> + void SetTempVarValue(const std::string &id, T value) + { + SetTempVarValue(id, value ? std::string("true") + : std::string("false")); + } + private: void ClearAvailableTempvars(); std::optional