Skip to content

Commit 440a547

Browse files
committed
Variable: Add 'add' method
1 parent 2c85fd2 commit 440a547

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scratch/variable.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class LIBSCRATCHCPP_EXPORT Variable : public IEntity
2525
bool isCloudVariable() const;
2626
void setIsCloudVariable(bool isCloudVariable);
2727

28+
/*! Adds the given value to the variable's value. \see Value::add() */
29+
inline void add(const Value &v) { m_value.add(v); }
30+
2831
private:
2932
std::string m_name;
3033
Value m_value;

0 commit comments

Comments
 (0)