diff options
author | chriseth <c@ethdev.com> | 2015-06-24 23:25:36 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-25 01:34:43 +0800 |
commit | e5ae5955b97009233fc46ac04070073750240698 (patch) | |
tree | 9781a740e3dc3f63110dece7127adcbdd3019380 /ExpressionCompiler.h | |
parent | 1add48a652ea695032d8c664fad3ea84afbfb9ea (diff) | |
download | dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.gz dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.bz2 dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.lz dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.xz dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.tar.zst dexon-solidity-e5ae5955b97009233fc46ac04070073750240698.zip |
Initialisation of memory types.
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r-- | ExpressionCompiler.h | 7 |
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); |