Document variableHeightDiff.

This commit is contained in:
chriseth 2020-07-20 15:43:52 +02:00
parent 92cd1ddb7d
commit f5d8636d28

View File

@ -201,6 +201,8 @@ private:
/// Determines the stack height difference to the given variables. Throws
/// if it is not yet in scope or the height difference is too large. Returns
/// the (positive) stack height difference otherwise.
/// @param _forSwap if true, produces stack error if the difference is invalid for a swap
/// opcode, otherwise checks for validity for a dup opcode.
size_t variableHeightDiff(Scope::Variable const& _var, YulString _name, bool _forSwap);
void expectDeposit(int _deposit, int _oldHeight) const;