aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r--ExpressionCompiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h
index 642560c6..747e241e 100644
--- a/ExpressionCompiler.h
+++ b/ExpressionCompiler.h
@@ -64,6 +64,13 @@ public:
/// Appends code to set a state variable to its initial value/expression.
void appendStateVariableInitialization(VariableDeclaration const& _varDecl);
+ /// Appends code to initialise a local variable.
+ /// If @a _toMemory is false, leaves the value on the stack. For memory references, this
+ /// allocates new memory.
+ /// If @a _toMemory is true, directly stores the data in the memory pos on the stack and
+ /// updates it.
+ void appendStackVariableInitialisation(Type const& _type, bool _toMemory = false);
+
/// Appends code for a State Variable accessor function
void appendStateVariableAccessor(VariableDeclaration const& _varDecl);