diff options
author | Christian <c@ethdev.com> | 2014-12-15 19:59:17 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-15 20:05:18 +0800 |
commit | 40f7c32e57cf8b09d45f52935b8726f5baef5358 (patch) | |
tree | ffd8a95576fd6ab0deec5246c474b07aa27b6792 /CompilerContext.h | |
parent | 2f64c56ef3a49f7551a708f63c4ed836efce7b73 (diff) | |
download | dexon-solidity-40f7c32e57cf8b09d45f52935b8726f5baef5358.tar.gz dexon-solidity-40f7c32e57cf8b09d45f52935b8726f5baef5358.tar.zst dexon-solidity-40f7c32e57cf8b09d45f52935b8726f5baef5358.zip |
Packing and unpacking of constructor arguments.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index 99f5ae94..795f447a 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -81,6 +81,8 @@ public: /// Adds a subroutine to the code (in the data section) and pushes its size (via a tag) /// on the stack. @returns the assembly item corresponding to the pushed subroutine, i.e. its offset. eth::AssemblyItem addSubroutine(eth::Assembly const& _assembly) { return m_asm.appendSubSize(_assembly); } + /// Pushes the size of the final program + void appendProgramSize() { return m_asm.appendProgramSize(); } /// Adds data to the data section, pushes a reference to the stack eth::AssemblyItem appendData(bytes const& _data) { return m_asm.append(_data); } |