[refactor] Move copying struct to storage to it's own util function.

This commit is contained in:
Djordje Mijovic
2021-01-11 16:26:14 +01:00
committed by chriseth
parent dfcba3bbd3
commit b06936b11c
2 changed files with 123 additions and 96 deletions
+4
View File
@@ -483,6 +483,10 @@ public:
std::string externalCodeFunction();
private:
/// @returns function that copies struct to storage
/// signature: (slot, value) ->
std::string copyStructToStorageFunction(StructType const& _from, StructType const& _to);
/// Special case of conversion functions - handles all array conversions.
std::string arrayConversionFunction(ArrayType const& _from, ArrayType const& _to);