Add allocateMemory helper with value known at compile time

This commit is contained in:
Alex Beregszaszi
2019-03-04 17:46:42 +01:00
committed by chriseth
parent 9c80f0fc76
commit a96cc6e0e8
5 changed files with 20 additions and 15 deletions
+4
View File
@@ -49,6 +49,10 @@ public:
/// Stack pre: <size>
/// Stack post: <mem_start>
void allocateMemory();
/// Allocates a number of bytes in memory as given on the stack.
/// Stack pre:
/// Stack post: <mem_start>
void allocateMemory(u256 const& size);
/// Appends code that transforms memptr to (memptr - free_memptr) memptr
/// Stack pre: <mem_end>
/// Stack post: <size> <mem_start>