mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add allocateMemory helper with value known at compile time
This commit is contained in:
committed by
chriseth
parent
9c80f0fc76
commit
a96cc6e0e8
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user